Commit 02c9950f authored by Frédéric Larue's avatar Frédéric Larue

Obsolete glEnable/glDisable on texture target removed from Bind()/Unbind() of...

Obsolete glEnable/glDisable on texture target removed from Bind()/Unbind() of Texture class in the GPU module.
parent ff6ce7dc
......@@ -18,7 +18,7 @@ void GPU::Texture::Bind( GLuint texUnit )
{
m_TexUnit = GL_TEXTURE0_ARB + texUnit;
gpuAssert( glActiveTextureARB( m_TexUnit ) );
gpuAssert( glEnable( m_Target ) );
// gpuAssert( glEnable( m_Target ) );
gpuAssert( glBindTexture( m_Target, m_Id ) );
}
......@@ -26,7 +26,7 @@ void GPU::Texture::Bind( GLuint texUnit )
void GPU::Texture::Unbind() const
{
gpuAssert( glActiveTextureARB( m_TexUnit ) );
gpuAssert( glDisable( m_Target ) );
//gpuAssert( glDisable( m_Target ) );
//glBindTexture( m_Target, 0 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment