Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-03 10:35:22 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-03 10:36:31 +0300
commit3a96cfcd26e158304df55923fa38bd1d0b995b0d (patch)
tree084060be3523500ca814865b54c37eb1dda6a3ce /source/blender/gpu/intern
parenta7a25fed2b64562c5bc2d1436dccd143a9e5fbf8 (diff)
Fix crash on startup on macOS, after recent framebuffer refactoring.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_framebuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c
index 27408ff9c25..8d8fb50d9b9 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.c
+++ b/source/blender/gpu/intern/gpu_framebuffer.c
@@ -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);