OPENGL: Make sure shader has been created before cloning it
This commit is contained in:
parent
2beeeb0fbc
commit
acf6280fbe
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ Shader *ShaderManager::query(ShaderUsage shader) const {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(_builtIn[shader]);
|
||||||
return _builtIn[shader]->clone();
|
return _builtIn[shader]->clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue