diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index 7a373f3444..1933e614fb 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -2321,8 +2321,6 @@ gst_gl_display_thread_do_upload_draw (GstGLDisplay* display, GLuint texture, case GST_VIDEO_FORMAT_YUY2: case GST_VIDEO_FORMAT_UYVY: { - gint i=0; - GstGLShader* shader_upload_YUY2_UYVY = NULL; switch (video_format) @@ -2363,8 +2361,6 @@ gst_gl_display_thread_do_upload_draw (GstGLDisplay* display, GLuint texture, case GST_VIDEO_FORMAT_I420: case GST_VIDEO_FORMAT_YV12: { - gint i=0; - gst_gl_shader_use (display->shader_upload_I420_YV12); glMatrixMode (GL_PROJECTION); @@ -2398,8 +2394,6 @@ gst_gl_display_thread_do_upload_draw (GstGLDisplay* display, GLuint texture, case GST_VIDEO_FORMAT_AYUV: { - gint i=0; - gst_gl_shader_use (display->shader_upload_AYUV); glMatrixMode (GL_PROJECTION); @@ -2498,7 +2492,6 @@ gst_gl_display_thread_do_download_draw (GstGLDisplay* display) case GST_VIDEO_FORMAT_YUY2: case GST_VIDEO_FORMAT_UYVY: { - gint i=0; GstGLShader* shader_download_YUY2_UYVY = NULL; switch (video_format) @@ -2532,8 +2525,6 @@ gst_gl_display_thread_do_download_draw (GstGLDisplay* display) case GST_VIDEO_FORMAT_I420: case GST_VIDEO_FORMAT_YV12: { - gint i=0; - glDrawBuffers(3, display->multipleRT); glClearColor(0.0, 0.0, 0.0, 0.0); @@ -2556,8 +2547,6 @@ gst_gl_display_thread_do_download_draw (GstGLDisplay* display) case GST_VIDEO_FORMAT_AYUV: { - gint i=0; - glDrawBuffer(GL_COLOR_ATTACHMENT0_EXT); glClearColor(0.0, 0.0, 0.0, 0.0); diff --git a/gst/gl/gstglfilteredge.c b/gst/gl/gstglfilteredge.c index c4ee4a7be5..bbd664d1bd 100644 --- a/gst/gl/gstglfilteredge.c +++ b/gst/gl/gstglfilteredge.c @@ -183,7 +183,6 @@ static void gst_gl_filter_edge_callback (gint width, gint height, guint texture, gpointer stuff) { GstGLFilterEdge* edge_filter = GST_GL_FILTER_EDGE (stuff); - gint i=0; glMatrixMode (GL_PROJECTION); glLoadIdentity ();