[Bf-blender-cvs] [eb907987278] blender2.8: Fix assert on framebuffer binding

Dalai Felinto noreply at git.blender.org
Fri May 19 14:39:42 CEST 2017


Commit: eb9079872781d8611155abeb3af2cabd6d33cd2f
Author: Dalai Felinto
Date:   Fri May 19 14:39:27 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBeb9079872781d8611155abeb3af2cabd6d33cd2f

Fix assert on framebuffer binding

===================================================================

M	source/blender/gpu/intern/gpu_extensions.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index 326f3bed391..6bf330179d3 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -157,7 +157,7 @@ void gpu_extensions_init(void)
 	glBindFramebuffer(GL_FRAMEBUFFER, 0);
 	glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_FRONT_LEFT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, &ret);
 	/* We expect FRONT_LEFT to be the default buffer. */
-	BLI_assert(ret == GL_NONE);
+	BLI_assert(ret == GL_FRAMEBUFFER_DEFAULT);
 #endif
 
 	GLint r, g, b;




More information about the Bf-blender-cvs mailing list