fixing a stupid code and a warning

This commit is contained in:
samcake 2016-04-07 23:05:50 -07:00
parent 76dd740578
commit 04e71df3bc

View file

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