|
|
|
@ -165,6 +165,9 @@ static int choosePixelFormat(_GLFWwindow* window, |
|
|
|
|
if (findAttribValue(WGL_ACCELERATION_ARB) == WGL_NO_ACCELERATION_ARB) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
if (findAttribValue(WGL_DOUBLE_BUFFER_ARB) != fbconfig->doublebuffer) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
u->redBits = findAttribValue(WGL_RED_BITS_ARB); |
|
|
|
|
u->greenBits = findAttribValue(WGL_GREEN_BITS_ARB); |
|
|
|
|
u->blueBits = findAttribValue(WGL_BLUE_BITS_ARB); |
|
|
|
@ -182,8 +185,6 @@ static int choosePixelFormat(_GLFWwindow* window, |
|
|
|
|
|
|
|
|
|
if (findAttribValue(WGL_STEREO_ARB)) |
|
|
|
|
u->stereo = GLFW_TRUE; |
|
|
|
|
if (findAttribValue(WGL_DOUBLE_BUFFER_ARB)) |
|
|
|
|
u->doublebuffer = GLFW_TRUE; |
|
|
|
|
|
|
|
|
|
if (_glfw.wgl.ARB_multisample) |
|
|
|
|
u->samples = findAttribValue(WGL_SAMPLES_ARB); |
|
|
|
@ -239,6 +240,9 @@ static int choosePixelFormat(_GLFWwindow* window, |
|
|
|
|
if (pfd.iPixelType != PFD_TYPE_RGBA) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
if (!!(pfd.dwFlags & PFD_DOUBLEBUFFER) != fbconfig->doublebuffer) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
u->redBits = pfd.cRedBits; |
|
|
|
|
u->greenBits = pfd.cGreenBits; |
|
|
|
|
u->blueBits = pfd.cBlueBits; |
|
|
|
@ -256,8 +260,6 @@ static int choosePixelFormat(_GLFWwindow* window, |
|
|
|
|
|
|
|
|
|
if (pfd.dwFlags & PFD_STEREO) |
|
|
|
|
u->stereo = GLFW_TRUE; |
|
|
|
|
if (pfd.dwFlags & PFD_DOUBLEBUFFER) |
|
|
|
|
u->doublebuffer = GLFW_TRUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
u->handle = pixelFormat; |
|
|
|
|