Fix: Crash Requesting GPU_SHADER_GPENCIL_FILL builtin shader.

Shader doesn't have any shader code. Requesting the shader
would crash blender. Solved by removing the enum_value.
This commit is contained in:
Jeroen Bakker 2021-06-28 08:51:37 +02:00
parent 46daaec425
commit 3c6a981fd9
Notes: blender-bot 2023-02-14 06:47:29 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 0 additions and 1 deletions

View File

@ -359,7 +359,6 @@ typedef enum eGPUBuiltinShader {
GPU_SHADER_INSTANCE_VARIYING_COLOR_VARIYING_SIZE, /* Uniformly scaled */
/* grease pencil drawing */
GPU_SHADER_GPENCIL_STROKE,
GPU_SHADER_GPENCIL_FILL,
/* specialized for widget drawing */
GPU_SHADER_2D_AREA_EDGES,
GPU_SHADER_2D_WIDGET_BASE,