removed all GL 2.x code.

After thinking about it for a day or so I believe it's the best option to remove all compatibility code because it's a major obstacle for a transition to a core profile.
This commit is contained in:
Christoph Oelckers 2014-06-21 15:50:32 +02:00
commit 2925c96b59
24 changed files with 310 additions and 809 deletions

View file

@ -216,13 +216,9 @@ void FGLRenderer::FlushTextures()
bool FGLRenderer::StartOffscreen()
{
if (gl.flags & RFL_FRAMEBUFFER)
{
if (mFBID == 0) glGenFramebuffers(1, &mFBID);
glBindFramebuffer(GL_FRAMEBUFFER, mFBID);
return true;
}
return false;
if (mFBID == 0) glGenFramebuffers(1, &mFBID);
glBindFramebuffer(GL_FRAMEBUFFER, mFBID);
return true;
}
//===========================================================================
@ -233,10 +229,7 @@ bool FGLRenderer::StartOffscreen()
void FGLRenderer::EndOffscreen()
{
if (gl.flags & RFL_FRAMEBUFFER)
{
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
//===========================================================================