Re: d3dx9: Implement ID3DXSprite_OnLostDevice/OnResetDevice
Nov. 16, 2008
11:14 p.m.
2008/11/15 Tony Wasserka <tony.wasserka(a)freenet.de>:
+ if(This->sprites) { + int i; + for(i=0;i<This->sprite_count;i++) + if(This->sprites[i].texture) This if should be redundant. I looked at some of the other sprite code, and noticed you've got similar constructions in other places. You also don't handle HeapAlloc/HeapReAlloc failures in most places.
+ HeapFree(GetProcessHeap(), 0, This->sprites); Why do you free the sprites array here?
6339
Age (days ago)
6339
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet