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:
authorClément Foucault <foucault.clem@gmail.com>2018-08-16 11:59:41 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-17 00:57:59 +0300
commitd96715fe5c1652bff1542480d81ea629f02d53b5 (patch)
treefe514206052ffc0571329e3c1becb23468ae106b /source/blender/gpu/intern/gpu_immediate.c
parentc761153f64e714d2ce4d4fdf2edc671719771501 (diff)
Fix T55722 : Blender 2.8 crashes on startup on old Nvidia cards
Diffstat (limited to 'source/blender/gpu/intern/gpu_immediate.c')
-rw-r--r--source/blender/gpu/intern/gpu_immediate.c6
1 files changed, 4 insertions, 2 deletions
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;
}