Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Dec 19, 2021
1 parent a2dac1a commit 1b3258a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/Rendering/Shaders/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,14 +590,14 @@ namespace Shader {
LOG_L(L_WARNING, "[GLSL-PO::%s] program-object name: %s, link-log:\n%s\n", __FUNCTION__, name.c_str(), log.c_str());
}

//#ifdef _DEBUG
#ifdef _DEBUG
if (IsValid()) {
for (const auto& [name, index] : attribLocations) {
GLint indexOut = glGetAttribLocation(objID, name.c_str());
LOG("[GLSLProgramObject::%s] Setting attribute %s to location %d(requested %d) for program %u", __func__, name.c_str(), indexOut, index, objID);
}
}
//#endif
#endif

} else {
valid = true;
Expand Down

0 comments on commit 1b3258a

Please sign in to comment.