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:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user