diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-10 13:09:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-10 13:09:10 +0300 |
commit | fcb2f8b6fdfa683ce5ba319b46873a0b61c9c75f (patch) | |
tree | 98182f19e3e42443abfcbaff0cc1158eaa335a68 /src/render | |
parent | 61e9fc59323157bbd3ea024e816981b975d5b2c8 (diff) | |
download | manaplus-fcb2f8b6fdfa683ce5ba319b46873a0b61c9c75f.tar.gz manaplus-fcb2f8b6fdfa683ce5ba319b46873a0b61c9c75f.tar.bz2 manaplus-fcb2f8b6fdfa683ce5ba319b46873a0b61c9c75f.tar.xz manaplus-fcb2f8b6fdfa683ce5ba319b46873a0b61c9c75f.zip |
Use same varaible names in simple and texture shaders.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index 98e125170..fd700a9cf 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -124,12 +124,12 @@ void ModernOpenGLGraphics::postInit() { logger->log("Shaders compilation done."); mglUseProgram(mSimpleProgramId); - mSimplePosAttrib = mglGetAttribLocation(mSimpleProgramId, "simplePos"); + mSimplePosAttrib = mglGetAttribLocation(mSimpleProgramId, "position"); mglEnableVertexAttribArray(mSimplePosAttrib); - mSimpleColorUniform = mglGetUniformLocation(mSimpleProgramId, "simpleColor"); + mSimpleColorUniform = mglGetUniformLocation(mSimpleProgramId, "color"); mSimpleScreenUniform = mglGetUniformLocation(mSimpleProgramId, "screen"); - mTexturePosAttrib = mglGetAttribLocation(mTextureProgramId, "texturePos"); + mTexturePosAttrib = mglGetAttribLocation(mTextureProgramId, "position"); mTexAttrib = mglGetAttribLocation(mTextureProgramId, "texcoord"); mTextureScreenUniform = mglGetUniformLocation(mTextureProgramId, "screen"); |