openvg/openvgrefimplementation/sfopenvg/vgi/vgi.cpp
branchEGL_MERGE
changeset 191 6356de74619b
parent 180 f767bd5f4cfc
--- a/openvg/openvgrefimplementation/sfopenvg/vgi/vgi.cpp	Fri Sep 24 16:48:05 2010 +0100
+++ b/openvg/openvgrefimplementation/sfopenvg/vgi/vgi.cpp	Fri Sep 24 16:58:15 2010 +0100
@@ -138,7 +138,6 @@
 		__ASSERT_ALWAYS(eglGetError() == EGL_SUCCESS,User::Invariant());
 		__ASSERT_ALWAYS(numconfigs == 1,User::Invariant());
 		
-		//TSize maxSize(MAX_WIDTH,MAX_HEIGHT);
 		TSize maxSize(aSize.iWidth, aSize.iHeight);
 	    
 		egl.iPixmap = new(ELeave) CFbsBitmap();
@@ -183,6 +182,7 @@
 	eglDestroySurface(egl.iEgldisplay, egl.iEglsurface);
 	delete egl.iPixmap;
 	ReleaseTls();
+	eglReleaseThread();
 }
 
 VGI_API_CALL TInt VGISymbianResize( TSize aSize )