summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-11 13:26:19 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-11 13:26:19 +0800
commit930907de7821d8e9f0ae59fafcbb0a0837ad5f9f (patch)
tree348eb797c1ec9c4edae4ce8857ca994a2a9fe918 /indra/llrender/llimagegl.cpp
parent27d50140177100d8b87322176ded972fda05318c (diff)
Preprocess non portable OpenGL 1.2 code
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r--indra/llrender/llimagegl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 11facef9c5..1270d71539 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -1165,7 +1165,9 @@ U32 type_width_from_pixtype(U32 pixtype)
{
case GL_UNSIGNED_BYTE:
case GL_BYTE:
+#if GL_VERSION_1_2
case GL_UNSIGNED_INT_8_8_8_8_REV:
+#endif
type_width = 1;
break;
case GL_UNSIGNED_SHORT: