mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
eglglessink: Don't clear surface color at render
This commit is contained in:
parent
9e23d0fc87
commit
ca74f676fd
1 changed files with 4 additions and 2 deletions
|
@ -1584,8 +1584,10 @@ gst_eglglessink_render_and_display (GstEglGlesSink * eglglessink,
|
|||
goto HANDLE_ERROR;
|
||||
}
|
||||
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
/* Don't really need to clear surface color
|
||||
* glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
* glClear (GL_COLOR_BUFFER_BIT);
|
||||
*/
|
||||
glDrawElements (GL_TRIANGLE_STRIP, 4, GL_UNSIGNED_SHORT, 0);
|
||||
if (got_gl_error ("glDrawElements"))
|
||||
goto HANDLE_ERROR;
|
||||
|
|
Loading…
Reference in a new issue