Remove unnecessary stuff when destroy context and surface on Windows.
authorSangjin Kim <sangjin3.kim@samsung.com>
Tue, 23 Apr 2013 12:03:20 +0000 (21:03 +0900)
committerSangjin Kim <sangjin3.kim@samsung.com>
Tue, 23 Apr 2013 12:06:34 +0000 (21:06 +0900)
As context and surface are decoupled, also not related to current context,
so no need to MakeCurrent(NULL) and destroy related surface when destroy context.

N_SE-34325 got fixed.

Signed-off-by: edwin.zhai <edwin.zhai@intel.com>
Signed-off-by: fengqian.gao <fengqian.gao@intel.com>
package/changelog
package/pkginfo.manifest
tizen/src/hw/gloffscreen_wgl.c

index 17b95d3068c7a1217d60d126268b8e85b0438c90..a88eefbf65b5d1b95a66567f1c535264585c0035 100644 (file)
@@ -1,3 +1,6 @@
+* 1.5.32
+- Fix the slideshow problem of gallery app.
+== Sangjin Kim <sangjin3.kim@samsung.com> 2013-04-23
 * 1.5.29
 - synchronization of display updating
 == GiWoong Kim <giwoong.kim@samsung.com> 2013-04-17
index 2c4f3b8ca7c0e6d2e770c2ce66df00340bb5cbe6..1cb22603a981078f54dc5e98e4ad6cf525e6ee0c 100644 (file)
@@ -1,4 +1,4 @@
-Version: 1.5.29
+Version: 1.5.32
 Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
 Source: emulator
 
index 5f7b3cfda3c6a6b897d260a12267e16faefa2f40..41fa29b42edfafdb64b45dc77d5f9a7450f35789 100644 (file)
@@ -857,14 +857,6 @@ GloContext *glo_context_create(int formatFlags, GloContext *shareLists) {
 void glo_context_destroy(GloContext *context) {
     if (!context) return;
 
-    wglMakeCurrent( NULL, NULL );
-    if( context->hPBuffer != NULL ) {
-        wglReleasePbufferDCARB( context->hPBuffer, context->hDC );
-        wglDestroyPbufferARB( context->hPBuffer );
-    }
-    if( context->hDC != NULL ) {
-        ReleaseDC( glo.hWnd, context->hDC );
-    }
     if (context->hContext) {
         wglDeleteContext(context->hContext);
     }
@@ -927,7 +919,6 @@ GloSurface *glo_surface_create(int width, int height, GloContext *context) {
 void glo_surface_destroy(GloSurface *surface) {
     if (!surface) return;
 
-    wglMakeCurrent( NULL, NULL );
     if( surface->hPBuffer != NULL ) {
         wglReleasePbufferDCARB( surface->hPBuffer, surface->hDC );
         wglDestroyPbufferARB( surface->hPBuffer );