Fix a situation where a failed shader would trigger an assert in RenderablePlane

This commit is contained in:
Alexander Bock
2014-11-27 23:43:06 +01:00
parent 82491bf89b
commit 2c3723a778
+3 -3
View File
@@ -121,12 +121,12 @@ bool RenderablePlane::initialize() {
glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, sizeof(GLfloat) * 6, reinterpret_cast<void*>(sizeof(GLfloat) * 4));
OsEng.ref().configurationManager().getValue("PlaneProgram", _shader);
assert(_shader);
if (!_shader)
return false;
loadTexture();
return true;
}