opengl32: Store alternative function in wglGetProcAddress.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d29dcec6ef
commit
e44f8eaa0f
|
@ -884,15 +884,15 @@ PROC WINAPI wglGetProcAddress( LPCSTR name )
|
|||
{ "glCopyTexSubImage3DEXT", "glCopyTexSubImage3D" }, /* needed by RuneScape */
|
||||
};
|
||||
|
||||
for (i = 0; i < sizeof(alternatives)/sizeof(alternatives[0]); i++)
|
||||
WARN("Extension %s required for %s not supported\n", ext_ret->extension, name);
|
||||
driver_func = NULL;
|
||||
|
||||
for (i = 0; i < sizeof(alternatives)/sizeof(alternatives[0]) && !driver_func; i++)
|
||||
{
|
||||
if (strcmp( name, alternatives[i].name )) continue;
|
||||
WARN("Extension %s required for %s not supported, trying %s\n",
|
||||
ext_ret->extension, name, alternatives[i].alt );
|
||||
return wglGetProcAddress( alternatives[i].alt );
|
||||
WARN("Trying alternative %s for %s\n", alternatives[i].alt, name );
|
||||
driver_func = wglGetProcAddress( alternatives[i].alt );
|
||||
}
|
||||
WARN("Extension %s required for %s not supported\n", ext_ret->extension, name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (driver_func == NULL)
|
||||
|
|
Loading…
Reference in New Issue