From 576619504e63e0385e2d7500da8859980327e058 Mon Sep 17 00:00:00 2001 From: Christopher Bruns Date: Sun, 2 Oct 2016 13:12:22 -0400 Subject: [PATCH] Remove unused WindowHeight uniform. --- src/gl/shaders/gl_present3dRowshader.cpp | 1 - src/gl/shaders/gl_present3dRowshader.h | 1 - src/gl/stereo3d/gl_interleaved3d.cpp | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/gl/shaders/gl_present3dRowshader.cpp b/src/gl/shaders/gl_present3dRowshader.cpp index 931278aaa..607e4ede6 100644 --- a/src/gl/shaders/gl_present3dRowshader.cpp +++ b/src/gl/shaders/gl_present3dRowshader.cpp @@ -54,7 +54,6 @@ void FPresent3DRowShader::Bind() Contrast.Init(mShader, "Contrast"); Brightness.Init(mShader, "Brightness"); Scale.Init(mShader, "UVScale"); - WindowHeight.Init(mShader, "WindowHeight"); VerticalPixelOffset.Init(mShader, "VerticalPixelOffset"); } mShader.Bind(); diff --git a/src/gl/shaders/gl_present3dRowshader.h b/src/gl/shaders/gl_present3dRowshader.h index b7f0d87b2..8e3bd772d 100644 --- a/src/gl/shaders/gl_present3dRowshader.h +++ b/src/gl/shaders/gl_present3dRowshader.h @@ -41,7 +41,6 @@ public: FBufferedUniform1f Contrast; FBufferedUniform1f Brightness; FBufferedUniform2f Scale; - FBufferedUniform1i WindowHeight; FBufferedUniform1i VerticalPixelOffset; private: diff --git a/src/gl/stereo3d/gl_interleaved3d.cpp b/src/gl/stereo3d/gl_interleaved3d.cpp index 5e0281ee6..fd7a6c4c6 100644 --- a/src/gl/stereo3d/gl_interleaved3d.cpp +++ b/src/gl/stereo3d/gl_interleaved3d.cpp @@ -99,8 +99,6 @@ void RowInterleaved3D::Present() const GLRenderer->mScreenViewport.width / (float)GLRenderer->mBuffers->GetWidth(), GLRenderer->mScreenViewport.height / (float)GLRenderer->mBuffers->GetHeight()); - GLRenderer->mPresent3dRowShader->WindowHeight.Set(0); - GLRenderer->mPresent3dRowShader->VerticalPixelOffset.Set(0); // fixme: vary with window location GLRenderer->RenderScreenQuad();