From: Rémi Bernon rbernon@codeweavers.com
--- dlls/wineandroid.drv/opengl.c | 16 ---------------- 1 file changed, 16 deletions(-)
diff --git a/dlls/wineandroid.drv/opengl.c b/dlls/wineandroid.drv/opengl.c index c570d82e2e4..b564f031f50 100644 --- a/dlls/wineandroid.drv/opengl.c +++ b/dlls/wineandroid.drv/opengl.c @@ -159,19 +159,6 @@ void destroy_gl_drawable( HWND hwnd ) pthread_mutex_unlock( &drawable_mutex ); }
-static BOOL refresh_context( struct android_context *ctx ) -{ - BOOL ret = InterlockedExchange( &ctx->refresh, FALSE ); - - if (ret) - { - TRACE( "refreshing hwnd %p context %p surface %p\n", ctx->hwnd, ctx->context, ctx->surface ); - funcs->p_eglMakeCurrent( egl->display, ctx->surface, ctx->surface, ctx->context ); - NtUserRedrawWindow( ctx->hwnd, NULL, 0, RDW_INVALIDATE | RDW_ERASE ); - } - return ret; -} - void update_gl_drawable( HWND hwnd ) { struct gl_drawable *gl; @@ -367,8 +354,6 @@ static BOOL android_swap_buffers( void *private, HWND hwnd, HDC hdc, int interva
TRACE( "%p hwnd %p context %p surface %p\n", hdc, ctx->hwnd, ctx->context, ctx->surface );
- if (refresh_context( ctx )) return TRUE; - if ((gl = get_gl_drawable( hwnd, hdc ))) { set_swap_interval( gl, interval ); @@ -385,7 +370,6 @@ static BOOL android_context_flush( void *private, HWND hwnd, HDC hdc, int interv struct gl_drawable *gl;
TRACE( "hwnd %p context %p\n", ctx->hwnd, ctx->context ); - refresh_context( ctx );
if ((gl = get_gl_drawable( hwnd, hdc ))) {