mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-28 14:42:23 +00:00
Disabled gamma shader in OS X native backend
This commit is contained in:
parent
893d0c8915
commit
8fa5fb6a95
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue