[Bf-blender-cvs] [d96715fe5c1] blender2.8: Fix T55722 : Blender 2.8 crashes on startup on old Nvidia cards

Clément Foucault noreply at git.blender.org
Fri Aug 17 00:00:22 CEST 2018


Commit: d96715fe5c1652bff1542480d81ea629f02d53b5
Author: Clément Foucault
Date:   Thu Aug 16 10:59:41 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd96715fe5c1652bff1542480d81ea629f02d53b5

Fix T55722 : Blender 2.8 crashes on startup on old Nvidia cards

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

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

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

diff --git a/source/blender/gpu/intern/gpu_immediate.c b/source/blender/gpu/intern/gpu_immediate.c
index 9674cf0b9f7..32c30c3f924 100644
--- a/source/blender/gpu/intern/gpu_immediate.c
+++ b/source/blender/gpu/intern/gpu_immediate.c
@@ -387,8 +387,10 @@ void immEnd(void)
 			immDrawSetup();
 			glDrawArrays(convert_prim_type_to_gl(imm.prim_type), 0, imm.vertex_len);
 		}
-		glBindBuffer(GL_ARRAY_BUFFER, 0);
-		glBindVertexArray(0);
+		/* These lines are causing crash on startup on some old GPU + drivers.
+		 * They are not required so just comment them. (T55722) */
+		// glBindBuffer(GL_ARRAY_BUFFER, 0);
+		// glBindVertexArray(0);
 		/* prep for next immBegin */
 		imm.buffer_offset += buffer_bytes_used;
 	}



More information about the Bf-blender-cvs mailing list