mirror of
https://github.com/aap/librw.git
synced 2024-11-25 21:25:42 +00:00
GL: Fix MSAA off mode
This commit is contained in:
parent
41ae7b9b61
commit
775075812b
@ -1723,6 +1723,10 @@ startGLFW(void)
|
|||||||
glfwWindowHint(GLFW_GREEN_BITS, mode->mode.greenBits);
|
glfwWindowHint(GLFW_GREEN_BITS, mode->mode.greenBits);
|
||||||
glfwWindowHint(GLFW_BLUE_BITS, mode->mode.blueBits);
|
glfwWindowHint(GLFW_BLUE_BITS, mode->mode.blueBits);
|
||||||
glfwWindowHint(GLFW_REFRESH_RATE, mode->mode.refreshRate);
|
glfwWindowHint(GLFW_REFRESH_RATE, mode->mode.refreshRate);
|
||||||
|
|
||||||
|
// 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);
|
glfwWindowHint(GLFW_SAMPLES, glGlobals.numSamples);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user