diff options
| author | Erik Kundiman <erik@megapahit.org> | 2023-10-26 10:01:52 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2023-10-26 10:01:52 +0800 | 
| commit | 281ca5330e5e1b46268a0bea68af1cdb4270d512 (patch) | |
| tree | 16d00c08fe3484bdd6f2e376efeadda340e1c582 /indra/llrender | |
| parent | 92fedbc11e2d69bd51660e24956984cf2503ec71 (diff) | |
| parent | 3ecce24f9f1a930f9765920a2818e5f5081d696c (diff) | |
Merge remote-tracking branch 'secondlife/DRTVWR-559' into DRTVWR-559
Diffstat (limited to 'indra/llrender')
| -rw-r--r-- | indra/llrender/llcubemaparray.cpp | 2 | ||||
| -rw-r--r-- | indra/llrender/llcubemaparray.h | 8 | ||||
| -rw-r--r-- | indra/llrender/llrender.h | 2 | 
3 files changed, 12 insertions, 0 deletions
| diff --git a/indra/llrender/llcubemaparray.cpp b/indra/llrender/llcubemaparray.cpp index 74c2161aa7..5403a0d12c 100644 --- a/indra/llrender/llcubemaparray.cpp +++ b/indra/llrender/llcubemaparray.cpp @@ -110,6 +110,8 @@ LLCubeMapArray::~LLCubeMapArray()  void LLCubeMapArray::allocate(U32 resolution, U32 components, U32 count, BOOL use_mips)  {      U32 texname = 0; +    mWidth = resolution; +    mCount = count;      LLImageGL::generateTextures(1, &texname); diff --git a/indra/llrender/llcubemaparray.h b/indra/llrender/llcubemaparray.h index 19c86278a1..6c3f7dc890 100644 --- a/indra/llrender/llcubemaparray.h +++ b/indra/llrender/llcubemaparray.h @@ -60,9 +60,17 @@ public:  	void destroyGL(); +    // get width of cubemaps in array (they're cubes, so this is also the height) +    U32 getWidth() const { return mWidth; } + +    // get number of cubemaps in the array +    U32 getCount() const { return mCount; } +  protected:  	friend class LLTexUnit;  	~LLCubeMapArray();  	LLPointer<LLImageGL> mImage; +    U32 mWidth = 0; +    U32 mCount = 0;  	S32 mTextureStage;  }; diff --git a/indra/llrender/llrender.h b/indra/llrender/llrender.h index 9660f7913a..ff8c3a8ac8 100644 --- a/indra/llrender/llrender.h +++ b/indra/llrender/llrender.h @@ -45,6 +45,8 @@  #include "llmatrix4a.h"  #include "glh/glh_linear.h" +#include <array> +  class LLVertexBuffer;  class LLCubeMap;  class LLImageGL; | 
