Forcing one FSAA sample to zero for consistency.

This commit is contained in:
Camilla Berglund 2010-09-19 01:31:23 +02:00
parent 2631d0e8e0
commit 525d517f86

View File

@ -1568,7 +1568,11 @@ void _glfwPlatformRefreshWindowParams(void)
if (window->WGL.has_WGL_ARB_multisample) if (window->WGL.has_WGL_ARB_multisample)
{ {
window->samples = getPixelFormatAttrib(window, pixelFormat, WGL_SAMPLES_ARB); window->samples = getPixelFormatAttrib(window, pixelFormat, WGL_SAMPLES_ARB);
// Should we force 1 to 0 here for consistency, or keep 1 for transparency?
// We force 1 to zero here because all the other APIs say zero when
// they really mean 1
if (window->samples == 1)
window->samples = 0;
} }
else else
window->samples = 0; window->samples = 0;