Fix T69377 Texture flickering when selecting in solid viewport (AMD Pro driver)

Workaround that does not fix the real issue.

The bug is caused by glBufferData inside
DRW_instance_buffer_finish > GPU_vertbuf_use
but only after the selection code which resets the number of items in
idatalist->pool_buffers.

I don't understand why this is happening as the vbo ids are all valid and
no error is reported. What is even more strange, is that it affects another
vbo which has no connection with the ones in DRW_instance_buffer_finish.
This commit is contained in:
Clément Foucault 2019-09-27 15:31:03 +02:00
parent c601839176
commit df3891ed81
Notes: blender-bot 2023-02-14 06:00:51 +01:00
Referenced by issue #69377, Texture flickering when selecting in solid viewport / AMD Navi RX 5700 series
1 changed files with 6 additions and 0 deletions

View File

@ -2630,7 +2630,13 @@ void DRW_draw_select_id(Depsgraph *depsgraph, ARegion *ar, View3D *v3d, const rc
drw_engines_cache_finish();
#if 0 /* This is a workaround to a nasty bug that seems to be a nasty driver bug. (See T69377) */
DRW_render_instance_buffer_finish();
#else
DST.buffer_finish_called = true;
// DRW_instance_buffer_finish(DST.idatalist);
drw_resource_buffer_finish(DST.vmempool);
#endif
}
/* Start Drawing */