From 3e628b15e351995a583130b085d931a7d063ca20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Dalleau?= Date: Thu, 8 Aug 2013 10:08:10 +0200 Subject: [PATCH] VirtGL: Fix BUG N_SE-47982 Opening http://www.ro.me/film in browser then press "Begin" makes Tizen emulator crash. The crash is due to SwapBuffers being called with non window parameter and non current pixmap. This parameter is provided in client application. --- tizen/src/hw/opengl_exec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tizen/src/hw/opengl_exec.c b/tizen/src/hw/opengl_exec.c index 41cd7fd815..df118cec36 100644 --- a/tizen/src/hw/opengl_exec.c +++ b/tizen/src/hw/opengl_exec.c @@ -1583,7 +1583,10 @@ int do_function_call(ProcessState *process, int func_number, unsigned long *args // We have to assume the current context here // since we assume that a drawable must belong to a specific context - resize_surface(process, qsurface, (int)args[1], (int)args[2]); + if (qsurface) + resize_surface(process, qsurface, (int)args[1], (int)args[2]); + else + DEBUGF("%s Failed to find surface for client_drawable %p process %p ->current_state %p ->->current_surface %p\n", "_resize_surface_func", client_drawable, process, process->current_state, process->current_state->current_qsurface); break; } -- 2.34.1