VirtGL: Fix warning about wrong type of pointer
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>
Tue, 3 Sep 2013 08:31:13 +0000 (10:31 +0200)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 11 Sep 2013 09:15:11 +0000 (18:15 +0900)
This could well be a bug!

Change-Id: I8bac1546290b85bd34f4b4abea8376bbc62549af

tizen/src/hw/opengl_exec.c

index d1e206e98be7b2003ae31a6d21d3e4ae51b634c5..dda65975aba47fcf108ded5e951f12b7ddc82e55 100644 (file)
@@ -1922,7 +1922,7 @@ int do_function_call(ProcessState *process, int func_number, unsigned long *args
                     if (glstate->current_qsurface && SURFACE_PIXMAP == glstate->current_qsurface->type )
                     {
                         /* Release it if the surface is used as texture target */
-                        glo_surface_release_texture(glstate->current_qsurface);
+                        glo_surface_release_texture(glstate->current_qsurface->surface);
                     }
 
                     process->current_state = glstate;