1
0
Fork 0

Fix gl_FragColor not being available in GLSL 330

This commit is contained in:
Fernando García Liñán 2023-09-30 12:16:21 +02:00
parent a82424e03f
commit b3fe3a2a62

View file

@ -12,6 +12,8 @@
#define DRAW_MODE_PATH 0
#define DRAW_MODE_IMAGE 1
out vec4 fragColor;
in vec2 texImageCoord;
in vec2 paintCoord;
@ -100,5 +102,5 @@ void main()
* (imageMode == DRAW_IMAGE_MULTIPLY ? col : vec4(1.0, 1.0, 1.0, 1.0));
}
gl_FragColor = col * scaleFactorBias[0] + scaleFactorBias[1];
fragColor = col * scaleFactorBias[0] + scaleFactorBias[1];
}