From d51dd7ca82cb65a10fcd7a3c0a0dc7420198986b Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 19 Aug 2014 12:18:24 +0200 Subject: WIP --- wglarb.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'wglarb.c') diff --git a/wglarb.c b/wglarb.c index 7ccc320..ba543d6 100644 --- a/wglarb.c +++ b/wglarb.c @@ -216,9 +216,16 @@ BOOL WINAPI wglarb_ChoosePixelFormatARB( return FALSE; } - PFNWGLCHOOSEPIXELFORMATARBPROC impl = - (PFNWGLCHOOSEPIXELFORMATARBPROC) wglGetProcAddress( - "wglChoosePixelFormatARB"); + PFNWGLCHOOSEPIXELFORMATARBPROC impl = NULL; + + impl = (PFNWGLCHOOSEPIXELFORMATARBPROC) wglGetProcAddress( + "wglChoosePixelFormatARB"); + if( !impl ) { + /* WGL_EXT_pixel_format uses the same function prototypes + * as the WGL_ARB_pixel_format extension */ + impl = (PFNWGLCHOOSEPIXELFORMATARBPROC) wglGetProcAddress( + "wglChoosePixelFormatEXT"); + } BOOL ret = FALSE; if( impl ) { -- cgit v1.2.3