wined3d: Check for the presence of wglGetExtensionsStringARB.
This commit is contained in:
parent
74e0072dfd
commit
5d08f3b705
|
@ -1405,12 +1405,14 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
|
||||||
/* Make sure there's an active HDC else the WGL extensions will fail */
|
/* Make sure there's an active HDC else the WGL extensions will fail */
|
||||||
hdc = pwglGetCurrentDC();
|
hdc = pwglGetCurrentDC();
|
||||||
if (hdc) {
|
if (hdc) {
|
||||||
WGL_Extensions = GL_EXTCALL(wglGetExtensionsStringARB(hdc));
|
/* Not all GL drivers might offer WGL extensions e.g. VirtualBox */
|
||||||
TRACE_(d3d_caps)("WGL_Extensions reported:\n");
|
if(GL_EXTCALL(wglGetExtensionsStringARB))
|
||||||
|
WGL_Extensions = GL_EXTCALL(wglGetExtensionsStringARB(hdc));
|
||||||
|
|
||||||
if (NULL == WGL_Extensions) {
|
if (NULL == WGL_Extensions) {
|
||||||
ERR(" WGL_Extensions returns NULL\n");
|
ERR(" WGL_Extensions returns NULL\n");
|
||||||
} else {
|
} else {
|
||||||
|
TRACE_(d3d_caps)("WGL_Extensions reported:\n");
|
||||||
while (*WGL_Extensions != 0x00) {
|
while (*WGL_Extensions != 0x00) {
|
||||||
const char *Start;
|
const char *Start;
|
||||||
char ThisExtn[256];
|
char ThisExtn[256];
|
||||||
|
|
Loading…
Reference in New Issue