Fix glClear not working properly if the last rendered model disabled depth or color writing (fix issue #639 on google code)