Fix for SL-19010 mac crash in LLManipTranslartge::restoreGL().

Attempt to simplify and avoid use of GL_UNSIGNED_INT_8_8_8_8_REV where not needed
master
Brad Linden 2023-01-19 14:25:14 -08:00
parent 8b39e0e1a6
commit d8cdfaa645
2 changed files with 1 additions and 4 deletions

View File

@ -1428,6 +1428,7 @@ void LLImageGL::setManualImage(U32 target, S32 miplevel, S32 intformat, S32 widt
{
case GL_UNSIGNED_BYTE:
case GL_BYTE:
case GL_UNSIGNED_INT_8_8_8_8_REV:
type_width = 1;
break;
case GL_UNSIGNED_SHORT:

View File

@ -267,11 +267,7 @@ void LLManipTranslate::restoreGL()
}
}
}
#ifdef LL_WINDOWS
LLImageGL::setManualImage(GL_TEXTURE_2D, mip, GL_RGBA, rez, rez, GL_RGBA, GL_UNSIGNED_BYTE, d);
#else
LLImageGL::setManualImage(GL_TEXTURE_2D, mip, GL_RGBA, rez, rez, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, d);
#endif
rez = rez >> 1;
mip++;
}