mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
do not call glFinish when we do not have a context
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16945 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
efb84bce97
commit
4acdc86503
@ -959,6 +959,7 @@ int setGlWindow(int *vinfo, HGLRC *context, HWND win)
|
||||
|
||||
// should only be needed when keeping context, but not doing glFinish
|
||||
// can cause flickering even when we do not keep it.
|
||||
if (*context)
|
||||
glFinish();
|
||||
new_vinfo = GetPixelFormat(windc);
|
||||
if (*context && *vinfo && new_vinfo && *vinfo == new_vinfo) {
|
||||
@ -1071,6 +1072,7 @@ int setGlWindow(XVisualInfo **vinfo, GLXContext *context, Window win)
|
||||
|
||||
// should only be needed when keeping context, but not doing glFinish
|
||||
// can cause flickering even when we do not keep it.
|
||||
if (*context)
|
||||
glFinish();
|
||||
new_vinfo = getWindowVisualInfo(win);
|
||||
if (*context && *vinfo && new_vinfo &&
|
||||
|
Loading…
Reference in New Issue
Block a user