gstgl doesn't undo/overwrite what GL state the examples are changing
anymore. As such, the examples need to reset the GL state themselves
to be able to play nice with libgstgl
glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.0f, -1.0f, 1.0f);
glTexCoord2f(0.0f, 1.0f); glVertex3f(-1.0f, 1.0f, 1.0f);
glTexCoord2f(1.0f, 1.0f); glVertex3f(-1.0f, 1.0f, -1.0f);
- glEnd();
+ glEnd();
+
+ glLoadIdentity();
+ glDisable(GL_DEPTH_TEST);
+ glBindTexture (GL_TEXTURE_2D, 0);
gst_video_frame_unmap (&v_frame);
glTexCoord2f(1.0, 1.0f); glVertex3f(-1.0f, 1.0f, -1.0f);
glEnd();
+ glLoadIdentity();
+ glDisable(GL_DEPTH_TEST);
+ glBindTexture (GL_TEXTURE_2D, 0);
+
gst_video_frame_unmap (&v_frame);
xrot+=0.03f;
#include <GL/glx.h>
#include <gst/video/video.h>
-#include <gst/gl/gstglmemory.h>
+#include <gst/gl/gl.h>
#if GST_GL_HAVE_PLATFORM_GLX
#include <QX11Info>
yrot += 0.2f;
zrot += 0.4f;
+ glLoadIdentity();
+ glDisable(GL_DEPTH_TEST);
glBindTexture (GL_TEXTURE_2D, 0);
gst_video_frame_unmap (&v_frame);