From: Frédéric Dalleau Date: Thu, 8 Aug 2013 08:08:10 +0000 (+0200) Subject: VirtGL: Fix BUG N_SE-47982 X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~749^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e628b15e351995a583130b085d931a7d063ca20;p=sdk%2Femulator%2Fqemu.git 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. --- 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; }