summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/AssetManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AssetManager.cpp b/src/AssetManager.cpp
index 5f2a160..3765f02 100644
--- a/src/AssetManager.cpp
+++ b/src/AssetManager.cpp
@@ -365,8 +365,9 @@ void ParseAssetShader(AssetTreeNode &node) {
node.asset = std::make_unique<AssetShader>();
AssetShader *asset = dynamic_cast<AssetShader*>(node.asset.get());
- asset->shader = std::make_unique<NewShader>(vertSource, fragSource, uniforms);
+ asset->shader = std::make_unique<Shader>(vertSource, fragSource, uniforms);
} catch (...) {
+ glCheckError();
return;
}
}