diff --git a/src/win32_fullscreen.c b/src/win32_fullscreen.c index 35d75054..045fecab 100644 --- a/src/win32_fullscreen.c +++ b/src/win32_fullscreen.c @@ -130,7 +130,7 @@ void _glfwSetVideoMode(int* width, int* height, closestRate = *refreshRate; if (getClosestVideoMode(&closestWidth, &closestHeight, - &closestBPP, &closestRate, GL_FALSE)) + &closestBPP, &closestRate, exactBPP)) { dm.dmSize = sizeof(DEVMODE); dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL;