mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 21:23:18 +02:00
Fix ubuntu warning
This commit is contained in:
parent
bc6b43b7be
commit
a13450b36f
1 changed files with 3 additions and 1 deletions
|
@ -106,8 +106,10 @@ bool TransferState::increment() {
|
|||
return true;
|
||||
}
|
||||
|
||||
uint8_t maxFace = (uint8_t)((_texture._target == GL_TEXTURE_CUBE_MAP) ? GLTexture::CUBE_NUM_FACES : 1);
|
||||
uint8_t nextFace = _face + 1;
|
||||
// Done with this face? Move on to the next
|
||||
if (_face + 1 < ((_texture._target == GL_TEXTURE_CUBE_MAP) ? GLTexture::CUBE_NUM_FACES : 1)) {
|
||||
if (nextFace < maxFace) {
|
||||
++_face;
|
||||
_mipOffset = uvec3(0);
|
||||
_mipLevel = 0;
|
||||
|
|
Loading…
Reference in a new issue