[v2 PATCH 2/3] d3dx10: Check device in d3dx10_sprite_GetDevice().