mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 13:50:05 +00:00
Fix more internal GCC warnings with -Wconversion
This commit is contained in:
parent
10f63f1918
commit
0e574f7204
@ -1276,7 +1276,7 @@ PatchTableBuilder::populatePatches() {
|
||||
patchParam.GetU(), patchParam.GetV(),
|
||||
patchParam.GetDepth(),
|
||||
patchParam.NonQuadRoot(),
|
||||
fvcPatchInfo.paramBoundaryMask,
|
||||
(unsigned short) fvcPatchInfo.paramBoundaryMask,
|
||||
patchParam.GetTransition(),
|
||||
fvcPatchInfo.isRegular);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ CpuGLVertexBuffer::BindVBO(void * /*deviceContext*/) {
|
||||
if (! _dataDirty)
|
||||
return _vbo;
|
||||
|
||||
int size = GetNumElements() * GetNumVertices() * sizeof(float);
|
||||
int size = GetNumElements() * GetNumVertices() * (int) sizeof(float);
|
||||
|
||||
if (! _vbo) {
|
||||
glGenBuffers(1, &_vbo);
|
||||
|
@ -59,7 +59,7 @@ void
|
||||
GLVertexBuffer::UpdateData(const float *src, int startVertex, int numVertices,
|
||||
void * /*deviceContext*/) {
|
||||
|
||||
int size = numVertices * _numElements * sizeof(float);
|
||||
int size = numVertices * _numElements * (int) sizeof(float);
|
||||
#if defined(GL_ARB_direct_state_access)
|
||||
if (OSD_OPENGL_HAS(ARB_direct_state_access)) {
|
||||
glNamedBufferSubData(_vbo,
|
||||
@ -96,7 +96,7 @@ GLVertexBuffer::BindVBO(void * /*deviceContext*/) {
|
||||
bool
|
||||
GLVertexBuffer::allocate() {
|
||||
|
||||
int size = _numElements * _numVertices * sizeof(float);
|
||||
int size = _numElements * _numVertices * (int) sizeof(float);
|
||||
|
||||
|
||||
#if defined(GL_ARB_direct_state_access)
|
||||
|
Loading…
Reference in New Issue
Block a user