diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-08 17:23:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-08 17:23:05 +0300 |
commit | 0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9 (patch) | |
tree | 50516887c1411ace54f74db6f7f44265faf7192b /src/render/shaders/shadersmanager.cpp | |
parent | cf5ad5970aa5c25ec413b95932171f4e5a2412c5 (diff) | |
download | manaverse-0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9.tar.gz manaverse-0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9.tar.bz2 manaverse-0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9.tar.xz manaverse-0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9.zip |
Add frag color variable in shared program creation.
Diffstat (limited to 'src/render/shaders/shadersmanager.cpp')
-rw-r--r-- | src/render/shaders/shadersmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/shaders/shadersmanager.cpp b/src/render/shaders/shadersmanager.cpp index e457ba473..e6b5c7181 100644 --- a/src/render/shaders/shadersmanager.cpp +++ b/src/render/shaders/shadersmanager.cpp @@ -90,6 +90,7 @@ ShaderProgram *ShadersManager::createProgram(const std::string &vertex, mglAttachShader(programId, vertexShader->getShaderId()); mglAttachShader(programId, fragmentShader->getShaderId()); + mglBindFragDataLocation(programId, 0, "outColor"); mglLinkProgram(programId); GLint isLinked = 0; mglGetProgramiv(programId, GL_LINK_STATUS, &isLinked); |