Fix crash on startup on macOS, after recent framebuffer refactoring.

This commit is contained in:
Brecht Van Lommel 2018-04-03 09:35:22 +02:00
parent a7a25fed2b
commit 3a96cfcd26
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ unsigned int GPU_framebuffer_current_get(void)
bool GPU_framebuffer_check_valid(GPUFrameBuffer *fb, char err_out[256])
{
if (g_currentfb != fb->object)
if (!GPU_framebuffer_bound(fb))
GPU_framebuffer_bind(fb);
GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);