diff --git a/Rendering/OpenGL2/vtkOpenGLRenderer.cxx b/Rendering/OpenGL2/vtkOpenGLRenderer.cxx index d6f1168bbba15cf9c0de25c4df0fd05f8459f2c3..f1c5745003cadaa9aee3be03915e71542a0f2758 100644 --- a/Rendering/OpenGL2/vtkOpenGLRenderer.cxx +++ b/Rendering/OpenGL2/vtkOpenGLRenderer.cxx @@ -669,7 +669,6 @@ void vtkOpenGLRenderer::Clear() { vtkShaderProgram::Substitute(fs, "//VTK::FSQ::Decl", "uniform vec3 stopColors[2];\n" - "uniform vec2 screenSize;\n" "//VTK::FSQ::Decl"); switch (this->GradientMode) { @@ -733,11 +732,7 @@ void vtkOpenGLRenderer::Clear() std::copy(this->Background, this->Background + 3, &stopColors[0][0]); std::copy(this->Background2, this->Background2 + 3, &stopColors[1][0]); - int vp[4]; // llX, llY, width, height - this->GetTiledSizeAndOrigin(&vp[2], &vp[3], &vp[0], &vp[1]); - float screenSize[2] = { static_cast<float>(vp[3]), static_cast<float>(vp[4]) }; this->BackgroundRenderer->Program->SetUniform3fv("stopColors", 2, stopColors); - this->BackgroundRenderer->Program->SetUniform1fv("screenSize", 2, screenSize); } // draw the background. this->BackgroundRenderer->Render();