summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2023-02-25 22:24:46 -0800
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2023-02-25 22:24:46 -0800
commit46b2c0660a091f5b3596084a71f63c8145bfac68 (patch)
tree08c8b09e15c2247e10d3d4ac7d73e6a697803086 /indra/llrender/llimagegl.cpp
parentb0fb4e3b7c6762d2f63ae349490c264e42809f60 (diff)
Hammering on more mac optimizations.
SL-18563
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r--indra/llrender/llimagegl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index b3b79bd6c4..50d4532fa7 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -1408,8 +1408,11 @@ void LLImageGL::setManualImage(U32 target, S32 miplevel, S32 intformat, S32 widt
LL_PROFILE_ZONE_NUM(height);
free_cur_tex_image();
-#if 0
- glTexImage2D(target, miplevel, intformat, width, height, 0, pixformat, pixtype, use_scratch ? scratch : pixels);
+#if LL_DARWIN
+ {
+ LL_PROFILE_ZONE_NAMED("glTexImage2D alloc");
+ glTexImage2D(target, miplevel, intformat, width, height, 0, pixformat, pixtype, use_scratch ? scratch : pixels);
+ }
#else
// break up calls to a manageable size for the GL command buffer
{