mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 02:04:28 +02:00
fixing a stupid code and a warning
This commit is contained in:
parent
76dd740578
commit
04e71df3bc
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue