[Title] Fix Windows build error and modify to check context more safe.
authorSangjin Kim <sangjin3.kim@samsung.com>
Wed, 12 Sep 2012 07:36:07 +0000 (16:36 +0900)
committerSangjin Kim <sangjin3.kim@samsung.com>
Wed, 12 Sep 2012 07:36:07 +0000 (16:36 +0900)
[Type] bug fix
[Module] opengl
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

package/pkginfo.manifest
tizen/src/hw/gloffscreen_glx.c
tizen/src/hw/gloffscreen_wgl.c
tizen/src/hw/gloffscreen_xcomposite.c
tizen/src/hw/opengl_exec.c

index 788fe9e..80401f4 100644 (file)
@@ -1,4 +1,4 @@
-Version: 1.3.51
+Version: 1.3.52
 Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
 Source: emulator
 
index e3d9887..6580dea 100644 (file)
@@ -234,7 +234,7 @@ int glo_surface_update_context(GloSurface *surface, GloContext *context)
         if ( !prev_context_valid ) /* light-weight context */
             g_free(surface->context);
     }
-     surface->context = context;
+    surface->context = context;
     return prev_context_valid;
 }
  
index af0a5f0..9c211d2 100644 (file)
@@ -804,7 +804,7 @@ int glo_surface_update_context(GloSurface *surface, GloContext *context)
 
     if ( surface->context )
     {
-        prev_context_valid = (surface->context->context != 0);
+        prev_context_valid = (surface->context->hContext != 0);
         if ( !prev_context_valid ) /* light-weight context */
             g_free(surface->context);
     }
index 18af192..18e5cb3 100644 (file)
@@ -269,7 +269,7 @@ int glo_surface_update_context(GloSurface *surface, GloContext *context)
         if ( !prev_context_valid ) /* light-weight context */
             g_free(surface->context);
     }
-     surface->context = context;
+    surface->context = context;
     return prev_context_valid;
 }
 
index f0f6a93..f886f2b 100644 (file)
@@ -616,8 +616,8 @@ static void unbind_qsurface(GLState *state,
 
     QTAILQ_REMOVE(&state->qsurfaces, qsurface, next);
 
-    /*XXX: need this?*/
-    state->current_qsurface = NULL;
+       if ( state->current_qsurface == qsurface )
+               state->current_qsurface = NULL;
 }
 
 /* Find the qsurface with required drawable in active & pending qsurfaces */