Add correct preprocessor check when enabling extension

pull/3053/head
AnyOldName3 4 years ago
parent 0431ba4c87
commit 3103266406

@ -1,5 +1,9 @@
#version 120
#if @useGPUShader4
#extension EXT_gpu_shader4: require
#endif
#define GROUNDCOVER
#if @diffuseMap

@ -1,6 +1,8 @@
#version 120
#extension EXT_gpu_shader4: enable
#if @useGPUShader4
#extension EXT_gpu_shader4: require
#endif
uniform sampler2D diffuseMap;
varying vec2 diffuseMapUV;

Loading…
Cancel
Save