[Bf-blender-cvs] [3c6a981fd98] blender-v2.93-release: Fix: Crash Requesting GPU_SHADER_GPENCIL_FILL builtin shader.
Jeroen Bakker
noreply at git.blender.org
Wed Jun 30 09:30:18 CEST 2021
Commit: 3c6a981fd986e4c95cc979a502d06cf71e1f8a59
Author: Jeroen Bakker
Date: Mon Jun 28 08:51:37 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rB3c6a981fd986e4c95cc979a502d06cf71e1f8a59
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.
===================================================================
M source/blender/gpu/GPU_shader.h
===================================================================
diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h
index 9824c7016dc..484ab95c980 100644
--- a/source/blender/gpu/GPU_shader.h
+++ b/source/blender/gpu/GPU_shader.h
@@ -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,
More information about the Bf-blender-cvs
mailing list