cogl/onscreen/glx: Remove duplicate wait function
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3587>
This commit is contained in:
parent
8677e36c4c
commit
ea486b200f
@ -343,15 +343,6 @@ cogl_onscreen_glx_bind (CoglOnscreen *onscreen)
|
|||||||
cogl_context_glx_set_current_drawable (context, drawable);
|
cogl_context_glx_set_current_drawable (context, drawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
_cogl_winsys_wait_for_gpu (CoglOnscreen *onscreen)
|
|
||||||
{
|
|
||||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
|
|
||||||
CoglContext *ctx = cogl_framebuffer_get_context (framebuffer);
|
|
||||||
|
|
||||||
ctx->glFinish ();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ensure_ust_type (CoglRenderer *renderer,
|
ensure_ust_type (CoglRenderer *renderer,
|
||||||
GLXDrawable drawable)
|
GLXDrawable drawable)
|
||||||
@ -779,7 +770,7 @@ cogl_onscreen_glx_swap_region (CoglOnscreen *onscreen,
|
|||||||
* additional extension so we can report the limited region of
|
* additional extension so we can report the limited region of
|
||||||
* the window damage to X/compositors.
|
* the window damage to X/compositors.
|
||||||
*/
|
*/
|
||||||
_cogl_winsys_wait_for_gpu (onscreen);
|
cogl_framebuffer_finish (framebuffer);
|
||||||
|
|
||||||
if (blit_sub_buffer_is_synchronized && have_counter && can_wait)
|
if (blit_sub_buffer_is_synchronized && have_counter && can_wait)
|
||||||
{
|
{
|
||||||
@ -944,7 +935,7 @@ cogl_onscreen_glx_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
|||||||
* obviously does not happen when we use _GLX_SWAP and let
|
* obviously does not happen when we use _GLX_SWAP and let
|
||||||
* the driver do the right thing
|
* the driver do the right thing
|
||||||
*/
|
*/
|
||||||
_cogl_winsys_wait_for_gpu (onscreen);
|
cogl_framebuffer_finish (framebuffer);
|
||||||
|
|
||||||
if (have_counter && can_wait)
|
if (have_counter && can_wait)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user