diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index 272d20403ea681e45afdb05d1e712df13652d6ed..18f3b22b898bea37228fbb98ba078ce0df62a5c0 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -1254,6 +1254,8 @@ void LLImageGL::setManualImage(U32 target, S32 miplevel, S32 intformat, S32 widt pix[3] = ((U8*)pixels)[i]; } + pixels = &scratch[0]; + pixformat = GL_RGBA; intformat = GL_RGBA8; }