mirror of
https://github.com/gwm17/glfw.git
synced 2025-02-24 22:28:51 -05:00
Discard software pixel formats.
This commit is contained in:
parent
08d758ed42
commit
ed31f1a670
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue
Block a user