Revert "Possible fix for T76113: Use GL_STATIC_DRAW in immBegin"

This reverts commit 7df51ca11a.
Did not solve the main problem.
This commit is contained in:
Germano Cavalcante 2020-05-04 08:40:45 -03:00
parent 6ea71cb104
commit d1226a6d9d
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}