- fixed: Morph weapons weren't destroyed because the code checked for
them in the unmorphed player class. - fixed: With padding the largest texture to fit into a page is 254x254. SVN r2005 (trunk)
This commit is contained in:
parent
f3b19fcca2
commit
d14faa5f98
3 changed files with 9 additions and 3 deletions
|
|
@ -1828,7 +1828,8 @@ D3DFB::PackedTexture *D3DFB::AllocPackedTexture(int w, int h, bool wrapping, D3D
|
|||
PackedTexture *bestbox;
|
||||
int area;
|
||||
|
||||
if (w > 256 || h > 256 || wrapping)
|
||||
// check for 254 to account for padding
|
||||
if (w > 254 || h > 254 || wrapping)
|
||||
{ // Create a new packing texture.
|
||||
bestpack = new PackingTexture(this, w, h, format);
|
||||
bestpack->OneUse = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue