diff options
author | Matthew Waters <matthew@centricular.com> | 2015-03-14 18:10:24 +0000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2015-03-14 18:12:38 +0000 |
commit | 199f9bd194ec4c367b5c8aafa95f8336539e6955 (patch) | |
tree | a79ba22c0f5da6ea7c8acf1dba3f845372a2646d /tests/examples/gl | |
parent | 7dd3a2ec9e27473bde9f636581fd7e71d59d1df3 (diff) | |
download | gstreamer-plugins-bad-199f9bd194ec4c367b5c8aafa95f8336539e6955.tar.gz |
gl/examples: fixup generic cube example for NDC
translating outside the clip region doesn't work
Diffstat (limited to 'tests/examples/gl')
-rw-r--r-- | tests/examples/gl/generic/cube/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/examples/gl/generic/cube/main.cpp b/tests/examples/gl/generic/cube/main.cpp index c3ace9fbe..3a54fe65b 100644 --- a/tests/examples/gl/generic/cube/main.cpp +++ b/tests/examples/gl/generic/cube/main.cpp @@ -120,7 +120,7 @@ static gboolean drawCallback (GstElement * gl_sink, GstGLContext *context, GstSa glMatrixMode(GL_MODELVIEW); glLoadIdentity(); - glTranslatef(0.0f,0.0f,-5.0f); + glScalef(0.5f,0.5f,0.5f); glRotatef(xrot,1.0f,0.0f,0.0f); glRotatef(yrot,0.0f,1.0f,0.0f); @@ -165,6 +165,9 @@ static gboolean drawCallback (GstElement * gl_sink, GstGLContext *context, GstSa yrot+=0.2f; zrot+=0.4f; + glDisable (GL_DEPTH_TEST); + glDisable (GL_TEXTURE_2D); + return TRUE; } |