diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 478c216..87b18dc 100644
|
a
|
b
|
static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
|
| 793 | 804 | else gl_info->pfn = NULL; \ |
| 794 | 805 | } |
| 795 | 806 | GL_EXT_FUNCS_GEN; |
| 796 | | #undef USE_GL_FUNC |
| 797 | | |
| 798 | | #define USE_GL_FUNC(type, pfn, ext, replace) gl_info->pfn = (type) pwglGetProcAddress(#pfn); |
| 799 | 807 | WGL_EXT_FUNCS_GEN; |
| 800 | 808 | #undef USE_GL_FUNC |
| 801 | 809 | |
| … |
… |
static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
|
| 1399 | 1410 | /* Make sure there's an active HDC else the WGL extensions will fail */ |
| 1400 | 1411 | hdc = pwglGetCurrentDC(); |
| 1401 | 1412 | if (hdc) { |
| 1402 | | WGL_Extensions = GL_EXTCALL(wglGetExtensionsStringARB(hdc)); |
| 1403 | | TRACE_(d3d_caps)("WGL_Extensions reported:\n"); |
| 1404 | | |
| 1405 | | if (NULL == WGL_Extensions) { |
| 1406 | | ERR(" WGL_Extensions returns NULL\n"); |
| | 1413 | if (! GL_EXTCALL(wglGetExtensionsStringARB)) { |
| | 1414 | TRACE_(d3d_caps)("wglGetExtensionsStringARB is unavailable\n"); |
| 1407 | 1415 | } else { |
| | 1416 | WGL_Extensions = GL_EXTCALL(wglGetExtensionsStringARB(hdc)); |
| | 1417 | if (NULL == WGL_Extensions) |
| | 1418 | ERR(" WGL_Extensions returns NULL\n"); |
| | 1419 | |
| | 1420 | TRACE_(d3d_caps)("WGL_Extensions reported:\n"); |
| 1408 | 1421 | while (*WGL_Extensions != 0x00) { |
| 1409 | 1422 | const char *Start; |
| 1410 | 1423 | char ThisExtn[256]; |
| … |
… |
BOOL InitAdapters(void) {
|
| 4287 | 4300 | strcpyW(Adapters[0].DeviceName, DisplayDevice.DeviceName); |
| 4288 | 4301 | |
| 4289 | 4302 | attribute = WGL_NUMBER_PIXEL_FORMATS_ARB; |
| 4290 | | GL_EXTCALL(wglGetPixelFormatAttribivARB(hdc, 0, 0, 1, &attribute, &Adapters[0].nCfgs)); |
| | 4303 | if (GL_EXTCALL(wglGetPixelFormatAttribivARB)) |
| | 4304 | GL_EXTCALL(wglGetPixelFormatAttribivARB(hdc, 0, 0, 1, &attribute, &Adapters[0].nCfgs)); |
| | 4305 | else { |
| | 4306 | TRACE("wglGetPixelFormatAttribivARB is unavailable\n"); |
| | 4307 | Adapters[0].nCfgs = 0; |
| | 4308 | } |
| 4291 | 4309 | |
| 4292 | 4310 | Adapters[0].cfgs = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, Adapters[0].nCfgs *sizeof(WineD3D_PixelFormat)); |
| 4293 | 4311 | cfgs = Adapters[0].cfgs; |