From 006844a15fbdc4ee5ee09d18dce193d6f62d0bce Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 15 Aug 2014 06:39:38 +0200 Subject: fix my last core shader error Now all shaders compile cleanly against a core context without deprecated functions. Change-Id: I53c1fe04e07247f94ad5e3a17819cebea0a9f535 --- chart2/opengl/pickingFragmentShader.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chart2') diff --git a/chart2/opengl/pickingFragmentShader.glsl b/chart2/opengl/pickingFragmentShader.glsl index d9e06a6ea015..6262216a6d77 100644 --- a/chart2/opengl/pickingFragmentShader.glsl +++ b/chart2/opengl/pickingFragmentShader.glsl @@ -12,12 +12,13 @@ uniform float minCoordX; in vec3 positionWorldspace; in vec4 fragmentColor; +out vec4 actualColor; void main() { if (positionWorldspace.x <= minCoordX) discard; - gl_FragColor = fragmentColor; + actualColor = fragmentColor; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3