mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[409/906] gleffects: indent and fix some warnings in ES 2.0 mode
This commit is contained in:
parent
e002f92e6d
commit
ba4ca3bced
1 changed files with 21 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue