Fix T76113 GPU: Crash closing file browsers with AMD GPUs
This fixes crash in the free mesa driver for amd gpus. This crash seems to only happen on linux.
This commit is contained in:
parent
f24e9bb038
commit
ac1a6565df
Notes:
blender-bot
2023-02-13 22:44:28 +01:00
Referenced by issue #76113, Crash closing file browsers with AMD GPUs
|
@ -249,7 +249,9 @@ static void draw_azone_arrow(float x1, float y1, float x2, float y2, AZEdge edge
|
|||
uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
|
||||
|
||||
GPU_blend(true);
|
||||
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
|
||||
/* NOTE(fclem): There is something strange going on with Mesa and GPU_SHADER_2D_UNIFORM_COLOR
|
||||
* that causes a crash on some GPUs (see T76113). Using 3D variant avoid the issue. */
|
||||
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
|
||||
immUniformColor4f(0.8f, 0.8f, 0.8f, 0.4f);
|
||||
|
||||
immBegin(GPU_PRIM_TRI_FAN, 6);
|
||||
|
|
Loading…
Reference in New Issue