diff options
author | Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> | 2015-11-19 17:18:54 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-11-19 19:21:46 +0200 |
commit | 04e2caeba5e346fb5d415d633b1956ef24c41037 (patch) | |
tree | 872a259389eb44e8d256507c303ebb8734bd3d0d /slideshow/opengl/basicVertexShader.glsl | |
parent | cad6045f5c1870bbc7b3c909b08b84d9d1ccc235 (diff) |
slideshow: Use gl_ModelViewProjectionMatrix in vertex shaders
ftransform() is deprecated, and we shouldnât do an extraneous
multiplication to obtain the two matrices together.
Change-Id: Iaa16c106b8b702468f7be643a812107f0967acdd
Diffstat (limited to 'slideshow/opengl/basicVertexShader.glsl')
-rw-r--r-- | slideshow/opengl/basicVertexShader.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/opengl/basicVertexShader.glsl b/slideshow/opengl/basicVertexShader.glsl index da8355465f9d..bd26c1b52115 100644 --- a/slideshow/opengl/basicVertexShader.glsl +++ b/slideshow/opengl/basicVertexShader.glsl @@ -32,7 +32,7 @@ varying vec2 v_texturePosition; void main( void ) { - gl_Position = ftransform(); + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; v_texturePosition = gl_MultiTexCoord0.xy; } |