Fix T97545 DRW: Crash cause by invalid " char in glsl source

Some old compiler do not like this character even if inside an `#error`
directive.
This commit is contained in:
2022-05-01 22:42:07 +02:00
parent 3f0c09f6dd
commit aa34706aac
3 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#define COMMON_GLOBALS_LIB
#ifdef USE_GPU_SHADER_CREATE_INFO
#error "Use draw_globals as additional_info instead of common_globals_lib.glsl"
# error Use draw_globals as additional_info instead of common_globals_lib.glsl
#endif
/* keep in sync with GlobalsUboStorage */

View File

@@ -3,7 +3,7 @@
#pragma BLENDER_REQUIRE(common_math_lib.glsl)
#ifndef DRW_GPENCIL_INFO
# error "Missing additional info draw_gpencil"
# error Missing additional info draw_gpencil
#endif
#ifdef GPU_FRAGMENT_SHADER

View File

@@ -33,7 +33,7 @@ layout(std140) uniform viewBlock
#ifdef USE_GPU_SHADER_CREATE_INFO
# ifndef DRW_RESOURCE_CHUNK_LEN
# error "Missing draw_view additional create info on shader create info"
# error Missing draw_view additional create info on shader create info
# endif
#endif