fixed some shader and render setup problems