mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 15:44:35 +00: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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only consider "hardware-accelerated" pixel formats
|
||||||
|
if (getPixelFormatAttrib(window, i, WGL_ACCELERATION_ARB) ==
|
||||||
|
WGL_NO_ACCELERATION_ARB)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
result[*found].redBits =
|
result[*found].redBits =
|
||||||
getPixelFormatAttrib(window, i, WGL_RED_BITS_ARB);
|
getPixelFormatAttrib(window, i, WGL_RED_BITS_ARB);
|
||||||
result[*found].greenBits =
|
result[*found].greenBits =
|
||||||
|
Loading…
Reference in New Issue
Block a user