fixed issue with mipmap generation causing black squares to appear ingame with some graphic cards