Do not enter renderLights if dynamic light is disabled
Avoid clearing buffer if not strictly necessary
Some fix for basic glsl mode