mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 16:29:29 +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
|
// Create the texture and allocate storage
|
||||||
GLBackend::GLTexture::GLTexture(const Texture& texture) :
|
GLBackend::GLTexture::GLTexture(const Texture& texture) :
|
||||||
_storageStamp(texture.getStamp()),
|
_storageStamp(texture.getStamp()),
|
||||||
_privateTexture(allocateSingleTexture()),
|
_privateTexture(0),
|
||||||
_target(gpuToGLTextureType(texture)),
|
_target(gpuToGLTextureType(texture)),
|
||||||
_size(0),
|
_size(0),
|
||||||
_virtualSize(0),
|
_virtualSize(0),
|
||||||
|
@ -165,7 +165,7 @@ void GLBackend::GLTexture::updateSize() {
|
||||||
(void)CHECK_GL_ERROR();
|
(void)CHECK_GL_ERROR();
|
||||||
|
|
||||||
if (gpuSize) {
|
if (gpuSize) {
|
||||||
for (GLint level = 0; level < _numLevels; level++) {
|
for (GLuint level = 0; level < _numLevels; level++) {
|
||||||
GLint levelSize{ 0 };
|
GLint levelSize{ 0 };
|
||||||
glGetTexLevelParameteriv(proxyType, level, GL_TEXTURE_COMPRESSED_IMAGE_SIZE, &levelSize);
|
glGetTexLevelParameteriv(proxyType, level, GL_TEXTURE_COMPRESSED_IMAGE_SIZE, &levelSize);
|
||||||
levelSize *= numFaces;
|
levelSize *= numFaces;
|
||||||
|
|
Loading…
Reference in a new issue