equal
deleted
inserted
replaced
136 |
136 |
137 eglChooseConfig(egl.iEgldisplay, s_configAttribs, &eglconfig, 1, &numconfigs); |
137 eglChooseConfig(egl.iEgldisplay, s_configAttribs, &eglconfig, 1, &numconfigs); |
138 __ASSERT_ALWAYS(eglGetError() == EGL_SUCCESS,User::Invariant()); |
138 __ASSERT_ALWAYS(eglGetError() == EGL_SUCCESS,User::Invariant()); |
139 __ASSERT_ALWAYS(numconfigs == 1,User::Invariant()); |
139 __ASSERT_ALWAYS(numconfigs == 1,User::Invariant()); |
140 |
140 |
141 //TSize maxSize(MAX_WIDTH,MAX_HEIGHT); |
|
142 TSize maxSize(aSize.iWidth, aSize.iHeight); |
141 TSize maxSize(aSize.iWidth, aSize.iHeight); |
143 |
142 |
144 egl.iPixmap = new(ELeave) CFbsBitmap(); |
143 egl.iPixmap = new(ELeave) CFbsBitmap(); |
145 egl.iPixmap->Create( maxSize, EColor16MA ); |
144 egl.iPixmap->Create( maxSize, EColor16MA ); |
146 |
145 |
181 TEgl& egl = GetEglInstance(); |
180 TEgl& egl = GetEglInstance(); |
182 eglDestroyContext(egl.iEgldisplay, egl.iEglcontext); |
181 eglDestroyContext(egl.iEgldisplay, egl.iEglcontext); |
183 eglDestroySurface(egl.iEgldisplay, egl.iEglsurface); |
182 eglDestroySurface(egl.iEgldisplay, egl.iEglsurface); |
184 delete egl.iPixmap; |
183 delete egl.iPixmap; |
185 ReleaseTls(); |
184 ReleaseTls(); |
|
185 eglReleaseThread(); |
186 } |
186 } |
187 |
187 |
188 VGI_API_CALL TInt VGISymbianResize( TSize aSize ) |
188 VGI_API_CALL TInt VGISymbianResize( TSize aSize ) |
189 { |
189 { |
190 return VGI_OK; |
190 return VGI_OK; |