mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed crash when printing on a computer without the FBO extension.
This commit is contained in:
parent
477a3f062b
commit
596878213a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue