Fix GDI device context leak.

https://codereview.appspot.com/7682044/



git-svn-id: http://skia.googlecode.com/svn/trunk@8113 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2013-03-12 17:27:10 +00:00
parent 5dc06785ff
commit f44957e769

View File

@ -371,7 +371,9 @@ void SkOSWindow::detachGL() {
void SkOSWindow::presentGL() {
glFlush();
SwapBuffers(GetDC((HWND)fHWND));
HDC dc = GetDC((HWND)fHWND);
SwapBuffers(dc);
ReleaseDC((HWND)fHWND, dc);
}
#if SK_ANGLE