diff options
| author | Graham Linden <graham@lindenlab.com> | 2019-07-15 15:04:48 -0700 |
|---|---|---|
| committer | Graham Linden <graham@lindenlab.com> | 2019-07-15 15:04:48 -0700 |
| commit | 946da4e507dd00e6e7a9e465d38494bcafe4f652 (patch) | |
| tree | 4b095a75b438b083d7a6dba45bb172b632c0a439 /indra/newview/lldynamictexture.h | |
| parent | ddf703611dd6ae7081b12e5be70bc69d44e6a3a2 (diff) | |
SL-10761
Add work-around for broken intel drivers which can't use glReadPixels from RGBA FBOs to get alpha without locking up.
Diffstat (limited to 'indra/newview/lldynamictexture.h')
| -rw-r--r-- | indra/newview/lldynamictexture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lldynamictexture.h b/indra/newview/lldynamictexture.h index f3f57c9a6b..4bd74a8425 100644 --- a/indra/newview/lldynamictexture.h +++ b/indra/newview/lldynamictexture.h @@ -88,6 +88,9 @@ public: static BOOL updateAllInstances(); static void destroyGL() ; static void restoreGL() ; + + void setBoundTarget(LLRenderTarget* target) { mBoundTarget = target; } + protected: void generateGLTexture(); void generateGLTexture(LLGLint internal_format, LLGLenum primary_format, LLGLenum type_format, BOOL swap_bytes = FALSE); @@ -97,6 +100,8 @@ protected: LLCoordGL mOrigin; LL_ALIGN_16(LLCamera mCamera); + LLRenderTarget* mBoundTarget; + typedef std::set<LLViewerDynamicTexture*> instance_list_t; static instance_list_t sInstances[ LLViewerDynamicTexture::ORDER_COUNT ]; static S32 sNumRenders; |
