diff options
author | Graham Linden <graham@lindenlab.com> | 2018-06-01 15:34:21 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-06-01 15:34:21 +0100 |
commit | 37e8fd20c3823482f3a15b4bfd544f7847070db8 (patch) | |
tree | b31e3a1ef86431cda7703621f779b38a98c14a3e /indra/llrender/llglslshader.h | |
parent | 64302d3000b69b31e72eb6a3bd8a981c80cb88de (diff) | |
parent | bd84cbfa11fbe2b3aa5ceba5978841310488b8e4 (diff) |
Merge to 5.1.6
Diffstat (limited to 'indra/llrender/llglslshader.h')
-rw-r--r-- | indra/llrender/llglslshader.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llrender/llglslshader.h b/indra/llrender/llglslshader.h index 562cbdcba9..59edd7b36f 100644 --- a/indra/llrender/llglslshader.h +++ b/indra/llrender/llglslshader.h @@ -175,7 +175,18 @@ public: typedef std::map < S32, magmin_values_t> magmin_filter_t; GLhandleARB mProgramObject; +#if LL_RELEASE_WITH_DEBUG_INFO + struct attr_name + { + GLint loc; + const char *name; + void operator = (GLint _loc) { loc = _loc; } + operator GLint () { return loc; } + }; + std::vector<attr_name> mAttribute; //lookup table of attribute enum to attribute channel +#else std::vector<GLint> mAttribute; //lookup table of attribute enum to attribute channel +#endif U32 mAttributeMask; //mask of which reserved attributes are set (lines up with LLVertexBuffer::getTypeMask()) uniforms_index_t mUniform; uniforms_index_t mTexture; |