From 03b8fa8772ef8aadb73fb096c7ba4e257902a331 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Jun 2014 20:26:24 +0300 Subject: In modernopengl use glProgramUniform. --- src/render/modernopenglgraphics.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src') diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index 349b7870b..caa14cb33 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -667,11 +667,6 @@ void ModernOpenGLGraphics::setTexturingAndBlending(const bool enable) mglUseProgram(mTextureProgramId); mglEnableVertexAttribArray(mTexturePosAttrib); mglEnableVertexAttribArray(mTexAttrib); -/* - mglUniform2f(mTextureScreenUniform, - static_cast(mWidth) / 2.0f, - static_cast(mHeight) / 2.0f); -*/ } if (!mAlpha) { @@ -688,16 +683,6 @@ void ModernOpenGLGraphics::setTexturingAndBlending(const bool enable) mglDisableVertexAttribArray(mTexAttrib); mglUseProgram(mSimpleProgramId); mglEnableVertexAttribArray(mSimplePosAttrib); -/* - mglUniform2f(mSimpleScreenUniform, - static_cast(mWidth) / 2.0f, - static_cast(mHeight) / 2.0f); - mglUniform4f(mSimpleColorUniform, - static_cast(mColor.r) / 255.0F, - static_cast(mColor.g) / 255.0F, - static_cast(mColor.b) / 255.0F, - static_cast(mColor.a) / 255.0F); -*/ } if (mAlpha && !mColorAlpha) { -- cgit v1.2.3-70-g09d2