From 775075812b624a442f4855e01e170be332c12232 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 28 Feb 2021 22:38:48 +1300 Subject: [PATCH] GL: Fix MSAA off mode --- src/gl/gl3device.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gl/gl3device.cpp b/src/gl/gl3device.cpp index 2557191..56b9fb7 100644 --- a/src/gl/gl3device.cpp +++ b/src/gl/gl3device.cpp @@ -1723,7 +1723,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++){