From 0d23d51361236216958f0aef49ce9d512f63c680 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 22 Dec 2012 23:26:44 +0000 Subject: [PATCH] neercs: fix a compilation error in text.lolfx. --- neercs/video/text.lolfx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neercs/video/text.lolfx b/neercs/video/text.lolfx index 34d5f41..718db54 100644 --- a/neercs/video/text.lolfx +++ b/neercs/video/text.lolfx @@ -81,7 +81,9 @@ void main() #define HAVE_SHADER_4 1 -#if !HAVE_SHADER_4 +#if HAVE_SHADER_4 +out vec4 out_Color; +#else # define out_Color gl_FragColor # define in varying # define out @@ -93,11 +95,10 @@ in vec2 pass_UV; uniform sampler2D u_Texture; -out vec4 out_Color; - void main(void) { vec2 c = gl_PointCoord * (1.0 / 32.0) + pass_UV; float t = texture2D(u_Texture, c).x; out_Color = mix(pass_Background, pass_Foreground, t); } +