diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index a0e75c36..aa5e626b 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -156,6 +156,7 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_SAMPLES, msaa); + glfwWindowHint(GLFW_SRGB_CAPABLE, state.gammaCorrect); #else glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); @@ -163,6 +164,7 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); glfwWindowHint(GLFW_SAMPLES, msaa); glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); + glfwWindowHint(GLFW_SRGB_CAPABLE, state.gammaCorrect); #endif GLFWmonitor* monitor = glfwGetPrimaryMonitor();