Fix more internal GCC warnings with -Wconversion

This commit is contained in:
Barry Fowler 2022-09-14 14:52:01 -07:00
parent 10f63f1918
commit 0e574f7204
3 changed files with 4 additions and 4 deletions

View File

@ -1276,7 +1276,7 @@ PatchTableBuilder::populatePatches() {
patchParam.GetU(), patchParam.GetV(),
patchParam.GetDepth(),
patchParam.NonQuadRoot(),
fvcPatchInfo.paramBoundaryMask,
(unsigned short) fvcPatchInfo.paramBoundaryMask,
patchParam.GetTransition(),
fvcPatchInfo.isRegular);
}

View File

@ -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);

View File

@ -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)