FIXED: cube rendering (polygon bleeding)

This commit fixes the problem with rendering cubes where further
triangles were appearing in front of the near ones.