diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-03 13:18:26 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-03 13:18:26 +0000 |
commit | 7b9f20c0ab48e517963a97fa66e758751aa7c618 (patch) | |
tree | 84acbcc781c1dd410f5c3639c62d27a40dd0d7af /libvo/gl_common.c | |
parent | e1e588421fc7e826d6bf65d838d3efb434827210 (diff) | |
download | mpv-7b9f20c0ab48e517963a97fa66e758751aa7c618.tar.bz2 mpv-7b9f20c0ab48e517963a97fa66e758751aa7c618.tar.xz |
Fix compilation after patch to remove global vo_hdc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24335 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r-- | libvo/gl_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 2c47189768..a123f582b9 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -1391,7 +1391,7 @@ int setGlWindow(int *vinfo, HGLRC *context, HWND win) res = SET_WINDOW_OK; out: - ReleaseDC(windc); + ReleaseDC(win, windc); return res; } @@ -1407,7 +1407,7 @@ void releaseGlContext(int *vinfo, HGLRC *context) { void swapGlBuffers() { HDC vo_hdc = GetDC(vo_w32_window); SwapBuffers(vo_hdc); - ReleaseDC(vo_hdc); + ReleaseDC(vo_w32_window, vo_hdc); } #else #ifdef HAVE_LIBDL |