diff options
Diffstat (limited to 'src/resources/loaders/shaderloader.cpp')
-rw-r--r-- | src/resources/loaders/shaderloader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/loaders/shaderloader.cpp b/src/resources/loaders/shaderloader.cpp index 5d5b70869..550be0a75 100644 --- a/src/resources/loaders/shaderloader.cpp +++ b/src/resources/loaders/shaderloader.cpp @@ -44,13 +44,13 @@ namespace static Resource *load(const void *const v) { - if (!v) + if (v == nullptr) return nullptr; const ShaderLoader *const rl = static_cast<const ShaderLoader *>(v); Shader *const resource = shaders.createShader(rl->type, rl->name); - if (!resource) + if (resource == nullptr) reportAlways("Shader creation error: %s", rl->name.c_str()); return resource; } |