diff options
author | Kovensky <diogomfranco@gmail.com> | 2012-01-27 01:31:33 +0000 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-03-31 02:58:52 +0200 |
commit | 59125ce71e378ae169eaecc8ac04d72bda3d130d (patch) | |
tree | 16768bcf5a0b41e627c8a45fd88ac0ca170fa8bc /libvo/w32_common.c | |
parent | 666915a6f01b01a4b5c087e78e92a5a7304f5598 (diff) | |
download | mpv-59125ce71e378ae169eaecc8ac04d72bda3d130d.tar.bz2 mpv-59125ce71e378ae169eaecc8ac04d72bda3d130d.tar.xz |
gl_common: OpenGL 3.x context support on windows
Also include GL/glext.h on windows:
Mingw's (and cygwin's) GL/gl.h has GL/glext.h's inclusion commented
out for some reason. Their glext.h is also ancient, so do yourself
a favor and replace your GL/glext.h with the one from
http://www.opengl.org/registry/api/glext.h .
A workaround is needed for NVidia's broken wglCreateContextAtrribsARB:
It'll return an error if the requested OpenGL version is previous to
3.2 *and* you request a profile... which is exactly *not* what the
wgl_create_context spec says should happen.
Handle it by removing the profile request from attribs[] and retrying
the context creation once more if the first try fails.
And after my first foray into OpenGL I already find a driver quirk.
Oh well.
Diffstat (limited to 'libvo/w32_common.c')
0 files changed, 0 insertions, 0 deletions