Less traces in textures/RT

This commit is contained in:
Emmanuel BENOîT 2017-10-01 15:00:59 +02:00
parent df1b51781e
commit 96122a6487
2 changed files with 2 additions and 1 deletions

View file

@ -55,10 +55,12 @@ T_Rendertarget T_RendertargetSetup::create( )
glGenFramebuffers( 1 , &id ); glGenFramebuffers( 1 , &id );
glBindFramebuffer( GL_FRAMEBUFFER , id ); glBindFramebuffer( GL_FRAMEBUFFER , id );
for ( auto i = 0u ; i < nca ; i ++ ) { for ( auto i = 0u ; i < nca ; i ++ ) {
#ifdef INTRUSIVE_TRACES
printf( "init fb %p att %d tx %p level %d\n" , printf( "init fb %p att %d tx %p level %d\n" ,
this , i , this , i ,
colorAttachments_[ i ].texture , colorAttachments_[ i ].texture ,
colorAttachments_[ i ].level ); colorAttachments_[ i ].level );
#endif
glFramebufferTexture( GL_FRAMEBUFFER , glFramebufferTexture( GL_FRAMEBUFFER ,
GL_COLOR_ATTACHMENT0 + i , GL_COLOR_ATTACHMENT0 + i ,
colorAttachments_[ i ].texture->id( ) , colorAttachments_[ i ].texture->id( ) ,

View file

@ -62,7 +62,6 @@ 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 ++ ) {
printf( "init tx %p l %d w %d h %d\n" , this , i , w , h );
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 >>= 1; w >>= 1;
h >>= 1; h >>= 1;