summaryrefslogtreecommitdiff
path: root/indra/llrender/llcubemaparray.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-11 13:32:41 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-11 13:32:41 +0800
commitaf2a0ae3bc3674fe20bc9eac8f3c9449e329372f (patch)
treee30f90ab1e1d4adf3e19df72e7f29e0b3e2ce193 /indra/llrender/llcubemaparray.cpp
parent4f45656ca98a144155cb492ca30c92d051d47e4c (diff)
Preprocess non portable OpenGL 4.0 code
Diffstat (limited to 'indra/llrender/llcubemaparray.cpp')
-rw-r--r--indra/llrender/llcubemaparray.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llcubemaparray.cpp b/indra/llrender/llcubemaparray.cpp
index 7d3a92237b..74c2161aa7 100644
--- a/indra/llrender/llcubemaparray.cpp
+++ b/indra/llrender/llcubemaparray.cpp
@@ -128,8 +128,10 @@ void LLCubeMapArray::allocate(U32 resolution, U32 components, U32 count, BOOL us
while (resolution >= 1)
{
+#if GL_VERSION_4_0
glTexImage3D(GL_TEXTURE_CUBE_MAP_ARRAY, mip, format, resolution, resolution, count * 6, 0,
GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
+#endif
if (!use_mips)
{