mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-07 19:22:15 +00:00
gl: call glClearColor before glClear
This commit is contained in:
parent
22d5f77ccf
commit
4844c53017
1 changed files with 3 additions and 0 deletions
|
@ -1124,6 +1124,8 @@ gst_glimage_sink_on_draw (const GstGLImageSink * gl_sink)
|
||||||
0.0f, 1.0f,
|
0.0f, 1.0f,
|
||||||
1.0f, 1.0f
|
1.0f, 1.0f
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gl->ClearColor (0.0, 0.0, 0.0, 0.0);
|
||||||
gl->Clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
gl->Clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
|
||||||
gl->MatrixMode (GL_PROJECTION);
|
gl->MatrixMode (GL_PROJECTION);
|
||||||
|
@ -1159,6 +1161,7 @@ gst_glimage_sink_on_draw (const GstGLImageSink * gl_sink)
|
||||||
|
|
||||||
GLushort indices[] = { 0, 1, 2, 0, 2, 3 };
|
GLushort indices[] = { 0, 1, 2, 0, 2, 3 };
|
||||||
|
|
||||||
|
gl->ClearColor (0.0, 0.0, 0.0, 0.0);
|
||||||
gl->Clear (GL_COLOR_BUFFER_BIT);
|
gl->Clear (GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
gst_gl_shader_use (gl_sink->redisplay_shader);
|
gst_gl_shader_use (gl_sink->redisplay_shader);
|
||||||
|
|
Loading…
Reference in a new issue