Remove unnecessary stuff when destroy context and surface on Windows. 2.1b_release
authorSangjin Kim <sangjin3.kim@samsung.com>
Tue, 23 Apr 2013 12:11:29 +0000 (21:11 +0900)
committerSangjin Kim <sangjin3.kim@samsung.com>
Tue, 23 Apr 2013 12:11:29 +0000 (21:11 +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 c1e390b9b5fbbd109719cd015e67c76f0ef3da4f..32523317478e00e6c60b6c924e83b1099389a436 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.31
 - rollback 'optimize a framebuffer copying'
 == GiWoong Kim <giwoong.kim@samsung.com> 2013-04-18
index d6e27f68b5fae86ed6739afb09aa77d8d7a1fad8..afc6f728d2b89a106525e036ffc9c267e595a48e 100644 (file)
@@ -1,4 +1,4 @@
-Version: 1.5.31
+Version: 1.5.32
 Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
 Source: emulator
 
index c1bf377ad6f659963b570ba60f999e3311bcc8b3..10ceb48dd53ba5f9bf23c737671194b6e5831d4f 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 );