|
From: Yoda-JM <yo...@us...> - 2011-02-07 13:18:15
|
Module: performous
Branch: opengl2
Commit: 7ecee918b1e0318d10859d5f27c9a0a49c0bdecf
Author: Vincent Le Ligeour <yo...@us...>
Date: Mon Feb 7 14:17:42 2011 +0100
Fixed segfault introduced in a136b2ee85144bed84ee983860dce0ba3b398022
---
game/glshader.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/glshader.cc b/game/glshader.cc
index fe6bd3b..99e67b7 100644
--- a/game/glshader.cc
+++ b/game/glshader.cc
@@ -63,7 +63,7 @@ Shader& Shader::compileFile(std::string const& filename, std::string const& defi
srccode = srccode.substr(0, pos) + defines + srccode.substr(pos + 9);
}
try {
- compileCode(srccode, type);
+ return compileCode(srccode, type);
} catch (std::runtime_error& e) {
throw std::runtime_error(filename + ": " + e.what());
}
|