mirror of
https://github.com/edubart/otclient.git
synced 2025-11-04 20:46:24 +01:00
Restore support for animated png files
* Rework resource manager * Add missing files * Improve some graphics classes
This commit is contained in:
@@ -80,7 +80,7 @@ bool Shader::compileSourceCode(const std::string& sourceCode)
|
||||
bool Shader::compileSourceFile(const std::string& sourceFile)
|
||||
{
|
||||
try {
|
||||
std::string sourceCode = g_resources.loadFile(sourceFile);
|
||||
std::string sourceCode = g_resources.readFileContents(sourceFile);
|
||||
return compileSourceCode(sourceCode);
|
||||
} catch(stdext::exception& e) {
|
||||
g_logger.error(stdext::format("unable to load shader source form file: %s", sourceFile));
|
||||
|
||||
Reference in New Issue
Block a user