Merge pull request #68 from phire/uglyness

GL: Fix MSAA off mode
This commit is contained in:
aap 2021-02-28 10:49:29 +01:00 committed by GitHub
commit 0102f88367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1670,7 +1670,11 @@ startGLFW(void)
glfwWindowHint(GLFW_GREEN_BITS, mode->mode.greenBits);
glfwWindowHint(GLFW_BLUE_BITS, mode->mode.blueBits);
glfwWindowHint(GLFW_REFRESH_RATE, mode->mode.refreshRate);
glfwWindowHint(GLFW_SAMPLES, glGlobals.numSamples);
// GLX will round up to 2x or 4x if you ask for multisampling on with 1 sample
// So only apply the SAMPLES hint if we actually want multisampling
if (glGlobals.numSamples > 1)
glfwWindowHint(GLFW_SAMPLES, glGlobals.numSamples);
int i;
for(i = 0; profiles[i].gl; i++){