summaryrefslogtreecommitdiff
path: root/src/render/shaders/shadersmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-08 17:23:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-08 17:23:05 +0300
commit0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9 (patch)
tree50516887c1411ace54f74db6f7f44265faf7192b /src/render/shaders/shadersmanager.cpp
parentcf5ad5970aa5c25ec413b95932171f4e5a2412c5 (diff)
downloadmv-0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9.tar.gz
mv-0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9.tar.bz2
mv-0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9.tar.xz
mv-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.cpp1
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);