From 58011bf32b654fefb1ad0a347764326e0eda8da7 Mon Sep 17 00:00:00 2001 From: Sangjin Kim Date: Tue, 23 Apr 2013 21:11:29 +0900 Subject: [PATCH] Remove unnecessary stuff when destroy context and surface on Windows. 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 Signed-off-by: fengqian.gao --- package/changelog | 3 +++ package/pkginfo.manifest | 2 +- tizen/src/hw/gloffscreen_wgl.c | 9 --------- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/package/changelog b/package/changelog index c1e390b9b5..3252331747 100644 --- a/package/changelog +++ b/package/changelog @@ -1,3 +1,6 @@ +* 1.5.32 +- Fix the slideshow problem of gallery app. +== Sangjin Kim 2013-04-23 * 1.5.31 - rollback 'optimize a framebuffer copying' == GiWoong Kim 2013-04-18 diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index d6e27f68b5..afc6f728d2 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,4 +1,4 @@ -Version: 1.5.31 +Version: 1.5.32 Maintainer: Yeong-Kyoon Lee Source: emulator diff --git a/tizen/src/hw/gloffscreen_wgl.c b/tizen/src/hw/gloffscreen_wgl.c index c1bf377ad6..10ceb48dd5 100644 --- a/tizen/src/hw/gloffscreen_wgl.c +++ b/tizen/src/hw/gloffscreen_wgl.c @@ -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 ); -- 2.34.1