Commit 50da224b authored by Alexandre Julliard's avatar Alexandre Julliard

Revert "opengl32: Store alternative function in wglGetProcAddress."

This reverts commit e44f8eaa. It mixes up the driver function and the WINAPI wrapper. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 97ac9d41
...@@ -884,15 +884,15 @@ PROC WINAPI wglGetProcAddress( LPCSTR name ) ...@@ -884,15 +884,15 @@ PROC WINAPI wglGetProcAddress( LPCSTR name )
{ "glCopyTexSubImage3DEXT", "glCopyTexSubImage3D" }, /* needed by RuneScape */ { "glCopyTexSubImage3DEXT", "glCopyTexSubImage3D" }, /* needed by RuneScape */
}; };
WARN("Extension %s required for %s not supported\n", ext_ret->extension, name); for (i = 0; i < sizeof(alternatives)/sizeof(alternatives[0]); i++)
driver_func = NULL;
for (i = 0; i < sizeof(alternatives)/sizeof(alternatives[0]) && !driver_func; i++)
{ {
if (strcmp( name, alternatives[i].name )) continue; if (strcmp( name, alternatives[i].name )) continue;
WARN("Trying alternative %s for %s\n", alternatives[i].alt, name ); WARN("Extension %s required for %s not supported, trying %s\n",
driver_func = wglGetProcAddress( alternatives[i].alt ); ext_ret->extension, name, alternatives[i].alt );
return wglGetProcAddress( alternatives[i].alt );
} }
WARN("Extension %s required for %s not supported\n", ext_ret->extension, name);
return NULL;
} }
if (driver_func == NULL) if (driver_func == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment