mirror of
https://github.com/edubart/otclient.git
synced 2025-11-04 20:46:24 +01:00
experimental map shaders
This commit is contained in:
@@ -72,8 +72,12 @@ bool Shader::compileSourceCode(const std::string& sourceCode)
|
||||
|
||||
bool Shader::compileSourceFile(const std::string& sourceFile)
|
||||
{
|
||||
std::string sourceCode = g_resources.loadFile(sourceFile);
|
||||
return compileSourceCode(sourceCode);
|
||||
try {
|
||||
std::string sourceCode = g_resources.loadFile(sourceFile);
|
||||
return compileSourceCode(sourceCode);
|
||||
} catch(stdext::exception& e) {
|
||||
g_logger.error(stdext::format("unable to load shader source form file: %s", sourceFile));
|
||||
}
|
||||
}
|
||||
|
||||
std::string Shader::log()
|
||||
|
||||
Reference in New Issue
Block a user