From: <mm...@us...> - 2009-04-04 21:10:31
|
Revision: 12024 http://alleg.svn.sourceforge.net/alleg/?rev=12024&view=rev Author: mmimica Date: 2009-04-04 21:10:21 +0000 (Sat, 04 Apr 2009) Log Message: ----------- Add/fix some checks for WGL extensions. Modified Paths: -------------- allegro/branches/4.9/src/win/wgl_disp.c Modified: allegro/branches/4.9/src/win/wgl_disp.c =================================================================== --- allegro/branches/4.9/src/win/wgl_disp.c 2009-04-04 20:58:40 UTC (rev 12023) +++ allegro/branches/4.9/src/win/wgl_disp.c 2009-04-04 21:10:21 UTC (rev 12024) @@ -656,7 +656,7 @@ if (!testrc) goto bail; - if (is_wgl_extension_supported("wglCreateContextAttribsARB", testdc)) { + if (is_wgl_extension_supported("WGL_ARB_create_context", testdc)) { int attrib[] = {WGL_CONTEXT_MAJOR_VERSION_ARB, major, WGL_CONTEXT_MINOR_VERSION_ARB, minor, WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB, fc, @@ -718,6 +718,12 @@ if (!testrc) goto bail; + if (!is_wgl_extension_supported("WGL_ARB_pixel_format", testdc) && + !is_wgl_extension_supported("WGL_EXT_pixel_format", testdc)) { + ALLEGRO_ERROR("WGL_ARB/EXT_pf not supported.\n"); + goto bail; + } + if (!init_pixel_format_extensions()) goto bail; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |