From 8fa5fb6a9548cd6aa2f9ff6289617ff339b19cff Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 30 Apr 2016 13:35:03 +0300 Subject: [PATCH] Disabled gamma shader in OS X native backend --- src/posix/cocoa/i_video.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index d9505afa6..446585bd0 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -1437,7 +1437,7 @@ CocoaOpenGLFrameBuffer::CocoaOpenGLFrameBuffer(void* hMonitor, int width, int he , m_renderTarget(width, height) { SetSmoothPicture(gl_smooth_rendered); - +/* // Setup uniform samplers for gamma correction shader m_gammaProgram.Load("GammaCorrection", "shaders/glsl/main.vp", @@ -1449,7 +1449,7 @@ CocoaOpenGLFrameBuffer::CocoaOpenGLFrameBuffer(void* hMonitor, int width, int he glUniform1i(glGetUniformLocation(program, "backbuffer"), 0); glUniform1i(glGetUniformLocation(program, "gammaTable"), 1); glUseProgram(0); - +*/ // Fill render target with black color m_renderTarget.Bind(); @@ -1519,7 +1519,7 @@ void CocoaOpenGLFrameBuffer::DrawRenderTarget() glViewport(rbOpts.shiftX, rbOpts.shiftY, rbOpts.width, rbOpts.height); - m_gammaProgram.Bind(); + //m_gammaProgram.Bind(); BoundTextureDraw2D(Width, Height); glViewport(0, 0, Width, Height);