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:
parent
5dc06785ff
commit
f44957e769
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user