mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
texpool fix
This commit is contained in:
parent
f6a2ce7777
commit
c0101d1d6c
1 changed files with 1 additions and 3 deletions
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue