From 04e71df3bcc3d09b338fd81681d2a4e00c4a1f87 Mon Sep 17 00:00:00 2001 From: samcake Date: Thu, 7 Apr 2016 23:05:50 -0700 Subject: [PATCH] fixing a stupid code and a warning --- libraries/gpu/src/gpu/GLBackendTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/gpu/src/gpu/GLBackendTexture.cpp b/libraries/gpu/src/gpu/GLBackendTexture.cpp index 54d7fb27bb..b0b68c6a2c 100755 --- a/libraries/gpu/src/gpu/GLBackendTexture.cpp +++ b/libraries/gpu/src/gpu/GLBackendTexture.cpp @@ -49,7 +49,7 @@ const GLenum GLBackend::GLTexture::CUBE_FACE_LAYOUT[6] = { // Create the texture and allocate storage GLBackend::GLTexture::GLTexture(const Texture& texture) : _storageStamp(texture.getStamp()), - _privateTexture(allocateSingleTexture()), + _privateTexture(0), _target(gpuToGLTextureType(texture)), _size(0), _virtualSize(0), @@ -165,7 +165,7 @@ void GLBackend::GLTexture::updateSize() { (void)CHECK_GL_ERROR(); if (gpuSize) { - for (GLint level = 0; level < _numLevels; level++) { + for (GLuint level = 0; level < _numLevels; level++) { GLint levelSize{ 0 }; glGetTexLevelParameteriv(proxyType, level, GL_TEXTURE_COMPRESSED_IMAGE_SIZE, &levelSize); levelSize *= numFaces;