summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-02-12 20:02:54 +0100
committer couriersud <couriersud@arcor.de>2015-02-12 20:02:54 +0100
commit14689ed98dc667a49ee9fcde0291be9a1ad3e23f (patch)
tree9b0e8817923d8862cbccc792346df1c0b86e8454 /src
parent4a99009812bf107c7937302ca3f45ce42f69159b (diff)
Use user_settings from render_container. (nw)
Diffstat (limited to 'src')
-rw-r--r--src/osd/sdl/drawogl.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/osd/sdl/drawogl.c b/src/osd/sdl/drawogl.c
index aae9d8c3a1a..bca0f19c85d 100644
--- a/src/osd/sdl/drawogl.c
+++ b/src/osd/sdl/drawogl.c
@@ -2858,15 +2858,9 @@ void sdl_info_ogl::texture_shader_update(texture_info *texture, render_container
* how to set shader variables. gamma, contrast and brightness are
* handled already by the core
*/
-#if 1
- vid_attributes[0] = window().machine().options().gamma();
- vid_attributes[1] = window().machine().options().contrast();
- vid_attributes[2] = window().machine().options().brightness();
-#else
- vid_attributes[0] = settings.gamma;
- vid_attributes[1] = settings.contrast;
- vid_attributes[2] = settings.brightness;
-#endif
+ vid_attributes[0] = settings.m_gamma;
+ vid_attributes[1] = settings.m_contrast;
+ vid_attributes[2] = settings.m_brightness;
vid_attributes[3] = 0.0f;
uniform_location = pfn_glGetUniformLocationARB(m_glsl_program[shaderIdx], "vid_attributes");
pfn_glUniform4fvARB(uniform_location, 1, &(vid_attributes[shaderIdx]));