gstglcolorconvert: micro optimization
Don't call glClear && glClearColor at each draw since we're going to draw the whole viewport anyway. Gets rid of a glFlush triggered by glClear on OSX.
This commit is contained in:
parent
e91989136a
commit
12e8bb4a66
@ -1540,9 +1540,6 @@ _do_convert_draw (GstGLContext * context, GstGLColorConvert * convert)
|
|||||||
|
|
||||||
gl->Viewport (0, 0, out_width, out_height);
|
gl->Viewport (0, 0, out_width, out_height);
|
||||||
|
|
||||||
gl->ClearColor (0.0, 0.0, 0.0, 0.0);
|
|
||||||
gl->Clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
|
||||||
|
|
||||||
gst_gl_shader_use (convert->shader);
|
gst_gl_shader_use (convert->shader);
|
||||||
|
|
||||||
if (gl->BindVertexArray)
|
if (gl->BindVertexArray)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user