diff options
author | Dave Parks <davep@lindenlab.com> | 2024-08-21 14:36:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 14:36:18 -0500 |
commit | 0e59ed204fdf84c5323837e5c91cfa7da0a9e89b (patch) | |
tree | 23aef0760f0896a528fd3a4fd95575076f8e1992 /indra/llrender/llimagegl.cpp | |
parent | 4bda6873ee7baac1ac34f92178d871c430da88c6 (diff) |
Fix crash on Intel GPUs (or anywhere OpenGL compatibility profile is used). (#2387)
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r-- | indra/llrender/llimagegl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index 0746e21079..be30807e7f 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -284,10 +284,13 @@ S32 LLImageGL::dataFormatBits(S32 dataformat) case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: return 8; case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: return 8; case GL_LUMINANCE: return 8; + case GL_LUMINANCE8: return 8; case GL_ALPHA: return 8; + case GL_ALPHA8: return 8; case GL_RED: return 8; case GL_COLOR_INDEX: return 8; case GL_LUMINANCE_ALPHA: return 16; + case GL_LUMINANCE8_ALPHA8: return 16; case GL_RGB: return 24; case GL_SRGB: return 24; case GL_RGB8: return 24; |