RE: [1/8] [d3d8] validate pool type in CreateVolumeTexture
15 Jul
2008
15 Jul
'08
5:48 a.m.
+ if ((DWORD)(Pool) >= 4) { + ERR("(%p) Called with invalid pool type\n", This); + return D3DERR_INVALIDCALL; + } You could use if(Pool != D3DPOOL_DEFAULT && Pool != MANAGED ...) instead of comparing to the arbitary value "4". The compiler should figure that out and generate a >= 4 for better efficiency, but even if not it doesn't hurt because Create* isn't performance critical.
6450
Age (days ago)
6450
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stefan Dösinger