fix emulator memory corruption when a ridiculously large texture is bound, such as one that might be defined by 0xFFFFFFFF

This commit is contained in:
zeromus 2010-06-29 00:10:54 +00:00
parent f810403c92
commit b5ff3a3111
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ using std::max;
class MemSpan
{
public:
static const int MAXSIZE = 8;
static const int MAXSIZE = 17; //max size for textures: 1024*1024*2 bytes / 128*1024 banks + 1 for wraparound
MemSpan()
: numItems(0), size(0)