diff --git a/polymer/eduke32/build/src/mdsprite.c b/polymer/eduke32/build/src/mdsprite.c index bfe31a399..b64d2587a 100644 --- a/polymer/eduke32/build/src/mdsprite.c +++ b/polymer/eduke32/build/src/mdsprite.c @@ -903,7 +903,7 @@ int32_t mdloadskin(md2model_t *m, int32_t number, int32_t pal, int32_t surf) int32_t const texfmt = glinfo.bgra ? GL_BGRA : GL_RGBA; uploadtexture((doalloc&1), siz, texfmt, pic, siz, - DAMETH_HI | + DAMETH_HI | DAMETH_MASK | TO_DAMETH_NODOWNSIZE(sk->flags) | TO_DAMETH_NOTEXCOMPRESS(sk->flags) | (hasalpha ? DAMETH_HASALPHA : 0)); diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 73c486598..6ca318f57 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -678,8 +678,6 @@ void uploadtexture(int32_t doalloc, vec2_t siz, int32_t texfmt, const int nomiptransfix = !!(dameth & DAMETH_NOFIX); const int hasalpha = !!(dameth & DAMETH_HASALPHA) && (dameth & DAMETH_MASKPROPS) != DAMETH_NOMASK; - dameth &= ~(DAMETH_HI|DAMETH_NODOWNSIZE|DAMETH_NOFIX|DAMETH_NOTEXCOMPRESS|DAMETH_HASALPHA|DAMETH_ONEBITALPHA); - #if !defined EDUKE32_GLES const int texcompress_ok = !(dameth & DAMETH_NOTEXCOMPRESS); @@ -695,6 +693,8 @@ void uploadtexture(int32_t doalloc, vec2_t siz, int32_t texfmt, int32_t intexfmt = **intexfmt_master; #endif + dameth &= ~(DAMETH_HI|DAMETH_NODOWNSIZE|DAMETH_NOFIX|DAMETH_NOTEXCOMPRESS|DAMETH_HASALPHA|DAMETH_ONEBITALPHA); + if (gltexmaxsize <= 0) { GLint i = 0;