diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2023-04-03 11:24:26 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2023-04-03 11:24:26 -0700 |
commit | dda6402893a83b770d5022bf775f9cd9b0d93755 (patch) | |
tree | 944317b6cd8a16eb24820f9071b61083b81d78bf /indra/newview/llviewermedia.cpp | |
parent | fe95b0a5ec1d7ec92bcbca3824138b1ce9a5b49c (diff) |
SL-19331: Add comment on reason for revert
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rw-r--r-- | indra/newview/llviewermedia.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index f672781f48..aae3bd7f25 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -2968,6 +2968,10 @@ void LLViewerMediaImpl::doMediaTexUpdate(LLViewerMediaTexture* media_tex, U8* da // wrap "data" in an LLImageRaw but do NOT make a copy LLPointer<LLImageRaw> raw = new LLImageRaw(data, media_tex->getWidth(), media_tex->getHeight(), media_tex->getComponents(), true); + // *NOTE: Recreating the GL texture each media update may seem wasteful + // (note the texture creation in preMediaTexUpdate), however, it apparently + // prevents GL calls from blocking, due to poor bookkeeping of state of + // updated textures by the OpenGL implementation. // Allocate GL texture based on LLImageRaw but do NOT copy to GL LLGLuint tex_name = 0; media_tex->createGLTexture(0, raw, 0, TRUE, LLGLTexture::OTHER, true, &tex_name); |