From ed31f1a67044ecf0ca6147d41861f1cdea87a4ce Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 8 Feb 2011 19:50:06 +0100 Subject: [PATCH] Discard software pixel formats. --- src/win32/win32_window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/win32/win32_window.c b/src/win32/win32_window.c index efd5c18e..3d3058c0 100644 --- a/src/win32/win32_window.c +++ b/src/win32/win32_window.c @@ -216,6 +216,13 @@ static _GLFWfbconfig* getFBConfigs(_GLFWwindow* window, unsigned int* found) continue; } + // Only consider "hardware-accelerated" pixel formats + if (getPixelFormatAttrib(window, i, WGL_ACCELERATION_ARB) == + WGL_NO_ACCELERATION_ARB) + { + continue; + } + result[*found].redBits = getPixelFormatAttrib(window, i, WGL_RED_BITS_ARB); result[*found].greenBits =