From 1efa9bd0b4748ab2a8bc7b962fc7f0dce03daa8c Mon Sep 17 00:00:00 2001 From: SmileTheory Date: Thu, 12 Dec 2013 21:38:01 -0800 Subject: OpenGL2: Small glsl shader optimizations, fixes, and cleanup. --- src/renderergl2/glsl/bokeh_vp.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/renderergl2/glsl/bokeh_vp.glsl') diff --git a/src/renderergl2/glsl/bokeh_vp.glsl b/src/renderergl2/glsl/bokeh_vp.glsl index 5ca41600..bdaa74af 100644 --- a/src/renderergl2/glsl/bokeh_vp.glsl +++ b/src/renderergl2/glsl/bokeh_vp.glsl @@ -1,4 +1,4 @@ -attribute vec4 attr_Position; +attribute vec3 attr_Position; attribute vec4 attr_TexCoord0; uniform mat4 u_ModelViewProjectionMatrix; @@ -8,6 +8,6 @@ varying vec2 var_TexCoords; void main() { - gl_Position = u_ModelViewProjectionMatrix * attr_Position; + gl_Position = u_ModelViewProjectionMatrix * vec4(attr_Position, 1.0); var_TexCoords = attr_TexCoord0.st; } -- cgit