static void set_horizontal_swap (GstGLContext * context, gpointer data) { #if GST_GL_HAVE_OPENGL GstGLFuncs *gl = context->gl_vtable; if (gst_gl_context_get_gl_api (context) & GST_GL_API_OPENGL) { const gfloat mirrormatrix[16] = { -1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 }; gl->MatrixMode (GL_MODELVIEW); gl->LoadMatrixf (mirrormatrix); } #endif }