diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2023-03-10 17:29:49 -0800 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2023-03-10 17:32:35 -0800 |
commit | c734602592d271204c7ac1debbc10a23c74b5b64 (patch) | |
tree | 29bb9296bd93abb76fedae89d041c5c06b42a221 /indra/llrender/llimagegl.h | |
parent | 33e44b2059831594f91a84d07b316e8eee94bd4f (diff) |
SL-19389: Fix textures not being optimally queued after the fix in SL-19338
In the future, some uses of glTexSubImage2D should be better vetted, ex: media prims
Diffstat (limited to 'indra/llrender/llimagegl.h')
-rw-r--r-- | indra/llrender/llimagegl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llrender/llimagegl.h b/indra/llrender/llimagegl.h index a03233323b..08d8f60979 100644 --- a/indra/llrender/llimagegl.h +++ b/indra/llrender/llimagegl.h @@ -118,9 +118,9 @@ public: BOOL createGLTexture(S32 discard_level, const U8* data, BOOL data_hasmips = FALSE, S32 usename = 0, bool defer_copy = false, LLGLuint* tex_name = nullptr); void setImage(const LLImageRaw* imageraw); BOOL setImage(const U8* data_in, BOOL data_hasmips = FALSE, S32 usename = 0); - // *NOTE: force_fast_update should only be used if the texture is not - // compressed (i.e. RenderCompressTextures is 0). Partial image updates - // (glTexSubImage2D) do not work on compressed textures. + // *TODO: This function may not work if the textures is compressed (i.e. + // RenderCompressTextures is 0). Partial image updates do not work on + // compressed textures. BOOL setSubImage(const LLImageRaw* imageraw, S32 x_pos, S32 y_pos, S32 width, S32 height, BOOL force_fast_update = FALSE, LLGLuint use_name = 0); BOOL setSubImage(const U8* datap, S32 data_width, S32 data_height, S32 x_pos, S32 y_pos, S32 width, S32 height, BOOL force_fast_update = FALSE, LLGLuint use_name = 0); BOOL setSubImageFromFrameBuffer(S32 fb_x, S32 fb_y, S32 x_pos, S32 y_pos, S32 width, S32 height); |