The amount of triangles drawn by the button depends on its sizex.
See:
immBegin(GPU_PRIM_TRI_STRIP, (sizex + 1) * 2);
Therefore the sizex cannot be 0.
Solution a bit similar to rB56b0cd1d.
Ref T67671
Differential D5347
Fix T67671: Blender crashes when resizing sidebar with a colorbamp Authored by Germano Cavalcante (mano-wii) on Jul 25 2019, 10:09 PM.
Details The amount of triangles drawn by the button depends on its sizex. immBegin(GPU_PRIM_TRI_STRIP, (sizex + 1) * 2); Therefore the sizex cannot be 0. Solution a bit similar to rB56b0cd1d. Ref T67671
Diff Detail
|