[Bf-blender-cvs] [d1226a6d9d2] master: Revert "Possible fix for T76113: Use GL_STATIC_DRAW in immBegin"
mano-wii
noreply at git.blender.org
Mon May 4 13:41:17 CEST 2020
Commit: d1226a6d9d2714443cbc6e911ddd26904edcde44
Author: mano-wii
Date: Mon May 4 08:40:45 2020 -0300
Branches: master
https://developer.blender.org/rBd1226a6d9d2714443cbc6e911ddd26904edcde44
Revert "Possible fix for T76113: Use GL_STATIC_DRAW in immBegin"
This reverts commit 7df51ca11a227b5e51290f8dc976972a01db5d81.
Did not solve the main problem.
===================================================================
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 f91a13a3b62..5a5dfb3e1e8 100644
--- a/source/blender/gpu/intern/gpu_immediate.c
+++ b/source/blender/gpu/intern/gpu_immediate.c
@@ -268,8 +268,7 @@ void immBegin(GPUPrimType prim_type, uint vertex_len)
else {
/* orphan this buffer & start with a fresh one */
/* this method works on all platforms, old & new */
- /* `GL_DYNAMIC_DRAW` was causing problems when closing temporary windows on old AMD GPUs. */
- glBufferData(GL_ARRAY_BUFFER, active_buffer->buffer_size, NULL, GL_STATIC_DRAW);
+ glBufferData(GL_ARRAY_BUFFER, active_buffer->buffer_size, NULL, GL_DYNAMIC_DRAW);
active_buffer->buffer_offset = 0;
}
More information about the Bf-blender-cvs
mailing list