Simplify an if statement in OGLRender.cpp.