fixes glDepth issues in gui::draw()