[Bf-blender-cvs] [8e0c57a812e] blender2.8: Gawain: fix immediate mode drawing exceeding IMM_BUFFER_SIZE

Campbell Barton noreply at git.blender.org
Thu Apr 20 12:43:20 CEST 2017


Commit: 8e0c57a812e8eb557bddd2d2bb1e6c812cd1e065
Author: Campbell Barton
Date:   Thu Apr 20 20:43:56 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB8e0c57a812e8eb557bddd2d2bb1e6c812cd1e065

Gawain: fix immediate mode drawing exceeding IMM_BUFFER_SIZE

Would cause crazy colors in file selector.

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

M	intern/gawain/src/immediate.c

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

diff --git a/intern/gawain/src/immediate.c b/intern/gawain/src/immediate.c
index 0a137973711..e36c1eddffc 100644
--- a/intern/gawain/src/immediate.c
+++ b/intern/gawain/src/immediate.c
@@ -208,9 +208,8 @@ void immBegin(PrimitiveType prim_type, unsigned vertex_ct)
 	else
 		{
 		// orphan this buffer & start with a fresh one
-#if APPLE_LEGACY
 		glBufferData(GL_ARRAY_BUFFER, IMM_BUFFER_SIZE, NULL, GL_DYNAMIC_DRAW);
-#else
+#if !APPLE_LEGACY
 		if (GLEW_VERSION_4_3 || GLEW_ARB_invalidate_subdata)
 			glInvalidateBufferData(imm.vbo_id);
 		else




More information about the Bf-blender-cvs mailing list