summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/shaders/shadersmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/shaders/shadersmanager.cpp b/src/render/shaders/shadersmanager.cpp
index 2138df1f5..f40e570a2 100644
--- a/src/render/shaders/shadersmanager.cpp
+++ b/src/render/shaders/shadersmanager.cpp
@@ -33,6 +33,8 @@
#include "render/shaders/shader.h"
#include "render/shaders/shaderprogram.h"
+#include "resources/loaders/shaderloader.h"
+
#include "resources/resourcemanager/resourcemanager.h"
#include "utils/files.h"
@@ -70,12 +72,12 @@ ShaderProgram *ShadersManager::createProgram(const std::string &vertex,
const bool isNewShader)
{
Shader *const vertexShader = static_cast<Shader*>(
- resourceManager->getShader(GL_VERTEX_SHADER, vertex));
+ Loader::getShader(GL_VERTEX_SHADER, vertex));
if (!vertexShader)
return nullptr;
Shader *const fragmentShader = static_cast<Shader*>(
- resourceManager->getShader(GL_FRAGMENT_SHADER, fragment));
+ Loader::getShader(GL_FRAGMENT_SHADER, fragment));
if (!fragmentShader)
{