Skip to content
Snippets Groups Projects
Commit 83600bb1 authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

SL-14108 FIXED Viewer crashes immediately after login

parent 67a32611
No related branches found
No related tags found
No related merge requests found
......@@ -1386,6 +1386,15 @@ BOOL LLImageGL::createGLTexture(S32 discard_level, const LLImageRaw* imageraw, S
return FALSE;
}
if (mHasExplicitFormat &&
(mFormatPrimary == GL_RGBA && mComponents < 4) ||
(mFormatPrimary == GL_RGB && mComponents < 3))
{
LL_WARNS() << "Incorrect format: " << std::hex << mFormatPrimary << " components: " << (U32)mComponents << LL_ENDL;
mHasExplicitFormat = FALSE;
}
if( !mHasExplicitFormat )
{
switch (mComponents)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment