diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-03 17:16:39 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-03 17:16:39 -0700 |
commit | 525c92b55ed837a998a8fe894bcad6b7244836fb (patch) | |
tree | 1598d879adc4a62b6594f7df2ae5aebd3cee1a0f /gst | |
parent | f6345606d11fafae41672420cd3f892f065ae52e (diff) |
What you don't want is for the GLSL compiler to end up doing two
matrix multiplications at runtime instead of one.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gl/gstglbumper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gl/gstglbumper.c b/gst/gl/gstglbumper.c index 5611847..8f54f22 100644 --- a/gst/gl/gstglbumper.c +++ b/gst/gl/gstglbumper.c @@ -85,7 +85,7 @@ static const gchar *bumper_v_src = "void main()\n" "{\n" " // transform the vertex\n" - " gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;\n" + " gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n" "\n" " // transform the normal and the tangent to scene coords\n" " vNormal = normalize(gl_NormalMatrix * gl_Normal);\n" |