From b3fe3a2a622691e15a9c3a91ddd85a3aca8c9725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Garc=C3=ADa=20Li=C3=B1=C3=A1n?= Date: Sat, 30 Sep 2023 12:16:21 +0200 Subject: [PATCH] Fix gl_FragColor not being available in GLSL 330 --- gui/shaders/canvas_pipeline.frag | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/shaders/canvas_pipeline.frag b/gui/shaders/canvas_pipeline.frag index f5bd52804..6c6b59032 100644 --- a/gui/shaders/canvas_pipeline.frag +++ b/gui/shaders/canvas_pipeline.frag @@ -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]; }