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:
authormano-wii <germano.costa@ig.com.br>2020-05-04 14:40:45 +0300
committermano-wii <germano.costa@ig.com.br>2020-05-04 14:41:07 +0300
commitd1226a6d9d2714443cbc6e911ddd26904edcde44 (patch)
tree48a76eec4e20c9c7095daa0f7afbae5b0301aab7 /source/blender/gpu
parent6ea71cb104109d7108f964742dff2b9c2766917a (diff)
Revert "Possible fix for T76113: Use GL_STATIC_DRAW in immBegin"
This reverts commit 7df51ca11a227b5e51290f8dc976972a01db5d81. Did not solve the main problem.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_immediate.c3
1 files changed, 1 insertions, 2 deletions
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;
}