diff --git a/source/lib/ffglex/FFGLFBO.cpp b/source/lib/ffglex/FFGLFBO.cpp index 966056d..e79c1b1 100644 --- a/source/lib/ffglex/FFGLFBO.cpp +++ b/source/lib/ffglex/FFGLFBO.cpp @@ -66,10 +66,10 @@ void FFGLFBO::Release() depthBufferID = 0; } - if( depthBufferID != 0 ) + if( colorTextureID != 0 ) { - glDeleteTextures( 1, &depthBufferID ); - depthBufferID = 0; + glDeleteTextures( 1, &colorTextureID ); + colorTextureID = 0; } }