diff options
author | Jonathan Goodman <geenz@lindenlab.com> | 2022-10-10 15:19:04 +0000 |
---|---|---|
committer | Jonathan Goodman <geenz@lindenlab.com> | 2022-10-10 15:19:04 +0000 |
commit | 7ff19ec98c25c6ad17b979078e77ec2cab9f7ebd (patch) | |
tree | ed8934f91cbbcd1591bf79bd46eef9b0b847500b /indra/llrender/llcubemaparray.cpp | |
parent | a73b226f9ee1df4803da8acbcfcef579254a51a4 (diff) | |
parent | ace892b8f5b12f4c85aec70caa032a13f8d0fd2c (diff) |
Merged DRTVWR-559 into SL-18290
Diffstat (limited to 'indra/llrender/llcubemaparray.cpp')
-rw-r--r-- | indra/llrender/llcubemaparray.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llrender/llcubemaparray.cpp b/indra/llrender/llcubemaparray.cpp index abb93093e0..a21f7d084e 100644 --- a/indra/llrender/llcubemaparray.cpp +++ b/indra/llrender/llcubemaparray.cpp @@ -122,7 +122,9 @@ void LLCubeMapArray::allocate(U32 resolution, U32 components, U32 count, BOOL us bind(0); - glTexImage3D(GL_TEXTURE_CUBE_MAP_ARRAY, 0, GL_RGB16F, resolution, resolution, count*6, 0, + U32 format = components == 4 ? GL_RGBA12 : GL_RGB10; + + glTexImage3D(GL_TEXTURE_CUBE_MAP_ARRAY, 0, format, resolution, resolution, count*6, 0, GL_RGB, GL_UNSIGNED_BYTE, nullptr); mImage->setAddressMode(LLTexUnit::TAM_CLAMP); |