Fixed crash when printing on a computer without the FBO extension.

This commit is contained in:
leo 2014-01-10 14:47:30 +00:00
parent 477a3f062b
commit 596878213a

View file

@ -170,6 +170,9 @@ bool GL_BeginRenderToTexture(int Width, int Height)
void GL_EndRenderToTexture()
{
if (!GL_SupportsFramebufferObject)
return;
glDeleteFramebuffers(1, &gFramebufferObject);
gFramebufferObject = 0;
glDeleteTextures(1, &gFramebufferTexture);