Skip to content
Snippets Groups Projects
Commit c47c6684 authored by DarkGod's avatar DarkGod
Browse files

Disabled gamma settings from being applied if shaders are disabled, hopefully...

Disabled gamma settings from being applied if shaders are disabled, hopefully this should prevent desktop-wide gamma alteration
parent 08c3c502
No related branches found
No related tags found
No related merge requests found
......@@ -705,13 +705,13 @@ function _M:setGamma(gamma)
-- Tell the shader which gamma to use
self.full_fbo_shader:setUniform("gamma", gamma)
-- Remove SDL gamma correction
core.display.setGamma(1)
-- core.display.setGamma(1)
print("[GAMMA] Setting gamma correction using fullscreen shader", gamma)
else
print("[GAMMA] Not setting gamma correction yet, no fullscreen shader found", gamma)
end
else
core.display.setGamma(gamma)
-- core.display.setGamma(gamma)
print("[GAMMA] Setting gamma correction using SDL", gamma)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment