Fixed texture size bug

This commit is contained in:
Emmanuel BENOîT 2017-09-30 15:28:24 +02:00
parent 7e223ff2f4
commit 83f885fa52

View file

@ -47,8 +47,8 @@ T_Texture::T_Texture(
uint32_t w = width , h = height;
for ( auto i = 0u ; i < levels ; i ++ ) {
glTexImage2D( GL_TEXTURE_2D , i , ifmt , w , h , 0 , fmt , dt , nullptr );
w >>= 2;
h >>= 2;
w >>= 1;
h >>= 1;
assert( w && h );
}