From 83f885fa52696e161d5f85bc7dae3180ec487c2a Mon Sep 17 00:00:00 2001 From: Emmanuel Benoit Date: Sat, 30 Sep 2017 15:28:24 +0200 Subject: [PATCH] Fixed texture size bug --- texture.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texture.cc b/texture.cc index 7487ebd..3047615 100644 --- a/texture.cc +++ b/texture.cc @@ -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 ); }