[409/906] gleffects: indent and fix some warnings in ES 2.0 mode

This commit is contained in:
Julien Isorce 2009-11-25 10:24:37 +01:00 committed by Matthew Waters
parent e002f92e6d
commit ba4ca3bced

View file

@ -273,9 +273,9 @@ gst_gl_effects_class_init (GstGLEffectsClass * klass)
void
gst_gl_effects_draw_texture (GstGLEffects * effects, GLuint tex)
{
#ifndef OPENGL_ES2
GstGLFilter *filter = GST_GL_FILTER (effects);
#ifndef OPENGL_ES2
glActiveTexture (GL_TEXTURE0);
glEnable (GL_TEXTURE_RECTANGLE_ARB);
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, tex);
@ -329,6 +329,7 @@ set_horizontal_swap (GstGLDisplay * display, gpointer data)
{
// GstGLEffects *effects = GST_GL_EFFECTS (data);
#ifndef OPENGL_ES2
const double mirrormatrix[16] = {
-1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
@ -336,7 +337,6 @@ set_horizontal_swap (GstGLDisplay * display, gpointer data)
0.0, 0.0, 0.0, 1.0
};
#ifndef OPENGL_ES2
glMatrixMode (GL_MODELVIEW);
glLoadMatrixd (mirrormatrix);
#endif