gl_common: slightly change win32 GL 3 context creation
commit40cf035d03ba73dec914cacc06aa5d0b9cf857a1
authorwm4 <wm4@mplayer2.org>
Sun, 18 Mar 2012 18:22:49 +0000 (18 19:22 +0100)
committerUoti Urpala <uau@mplayer2.org>
Thu, 6 Sep 2012 16:31:06 +0000 (6 19:31 +0300)
tree7ac7d94a372100694211098b3df3664c96390608
parent95b42c759ce9383d675561c9eb404cf17d5413c7
gl_common: slightly change win32 GL 3 context creation

The code used OpenGL 3 specific functions for querying the extension
string when the actual GL 3 context wasn't created yet. This appears to
work fine on nVidia, but could break otherwise. Remove the offending
getFunctions call and retrieve the needed function pointer manually.
(This way the wglCreateContextAttribsARB function pointer can be removed
from struct GL too.)

(Amusingly exposes a wine bug; they made the same mistake.)

Explicitly check the extension string whether the function is available,
although this probably doesn't matter in practice.

Also retrieve bit depth information on win32.
libvo/gl_common.c
libvo/gl_common.h