Fixed texture size bug
This commit is contained in:
parent
7e223ff2f4
commit
83f885fa52
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ T_Texture::T_Texture(
|
||||||
uint32_t w = width , h = height;
|
uint32_t w = width , h = height;
|
||||||
for ( auto i = 0u ; i < levels ; i ++ ) {
|
for ( auto i = 0u ; i < levels ; i ++ ) {
|
||||||
glTexImage2D( GL_TEXTURE_2D , i , ifmt , w , h , 0 , fmt , dt , nullptr );
|
glTexImage2D( GL_TEXTURE_2D , i , ifmt , w , h , 0 , fmt , dt , nullptr );
|
||||||
w >>= 2;
|
w >>= 1;
|
||||||
h >>= 2;
|
h >>= 1;
|
||||||
assert( w && h );
|
assert( w && h );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue