From 0b9dc3ef09cf2e4db6877babf2b97404a6c6c4c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Jun 2014 17:23:05 +0300 Subject: Add frag color variable in shared program creation. --- src/render/shaders/shadersmanager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2