texpool fix

This commit is contained in:
DepressedTWM 2026-06-01 14:16:09 -04:00
parent f6a2ce7777
commit c0101d1d6c

View file

@ -97,7 +97,6 @@ TexPool::~TexPool(){
TEXFBO TexPool::request(int width, int height){ TEXFBO TexPool::request(int width, int height){
CacheNode cnode; CacheNode cnode;
Size size(width, height); Size size(width, height);
char msg[512];
/* See if we can statisfy request from cache */ /* See if we can statisfy request from cache */
CNodeList &bucket = p->poolHash[size]; CNodeList &bucket = p->poolHash[size];
@ -118,8 +117,7 @@ TEXFBO TexPool::request(int width, int height){
int maxSize = glState.caps.maxTexSize; int maxSize = glState.caps.maxTexSize;
if (width > maxSize || height > maxSize){ if (width > maxSize || height > maxSize){
snprintf(msg, sizeof msg, "Texture dimensions [%d, %d] exceed hardware capabilities", width, height); crash(Exception::MKXPError, "Texture dimensions [%d, %d] exceed hardware capabilities", width, height);
crash(msg, Exception::MKXPError, true);
} }
/* Nope, create it instead */ /* Nope, create it instead */