mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
1 changed files with 0 additions and 3 deletions
|
@ -1540,9 +1540,6 @@ _do_convert_draw (GstGLContext * context, GstGLColorConvert * convert)
|
|||
|
||||
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);
|
||||
|
||||
if (gl->BindVertexArray)
|
||||
|
|
Loading…
Reference in a new issue