diff options
author | wm4 <wm4@nowhere> | 2014-07-26 20:28:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-26 20:28:01 +0200 |
commit | 9a3f1f24ca86b299c9d5f8c42eccab7fca26b2dd (patch) | |
tree | f4b91036737d9c6ae3aa89a98258fc62b1a31300 /TOOLS | |
parent | 7f0d9a95fa943f516fcb176ccc40c8bc54af890e (diff) | |
download | mpv-9a3f1f24ca86b299c9d5f8c42eccab7fca26b2dd.tar.bz2 mpv-9a3f1f24ca86b299c9d5f8c42eccab7fca26b2dd.tar.xz |
win32: don't use CS_OWNDC
CS_OWNDC will make GetDC() always return the same HDC. This might
become a problem when OpenGL rendering and window management are
on different threads. Although I'm not too sure about this; our
code never requests a HDC outside of the OpenGL backend, and it
depends on whether win32 will internally request DCs. But in any
case, this seems to be cleaner.
Move the GL pixelformat setup code to gl_w32.c, where it's actually
needed. This also fixes that SetPixelFormat() should be called only
once, and not every time video params change.
Diffstat (limited to 'TOOLS')
0 files changed, 0 insertions, 0 deletions