diff --git a/common/opengl.cpp b/common/opengl.cpp index 0812280f..ab84ea4c 100644 --- a/common/opengl.cpp +++ b/common/opengl.cpp @@ -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);