diff options
Diffstat (limited to 'drivers/gles2/shader_gles2.h')
-rw-r--r-- | drivers/gles2/shader_gles2.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gles2/shader_gles2.h b/drivers/gles2/shader_gles2.h index d20d5bc585..3096c1e258 100644 --- a/drivers/gles2/shader_gles2.h +++ b/drivers/gles2/shader_gles2.h @@ -53,20 +53,17 @@ class RasterizerStorageGLES2; class ShaderGLES2 { protected: struct Enum { - uint64_t mask; uint64_t shift; const char *defines[16]; }; struct EnumValue { - uint64_t set_mask; uint64_t clear_mask; }; struct AttributePair { - const char *name; int index; }; @@ -77,7 +74,6 @@ protected: }; struct TexUnitPair { - const char *name; int index; }; @@ -94,7 +90,6 @@ private: int attribute_pair_count; struct CustomCode { - String vertex; String vertex_globals; String fragment; @@ -108,7 +103,6 @@ private: }; struct Version { - GLuint id; GLuint vert_id; GLuint frag_id; @@ -130,7 +124,6 @@ private: Version *version; union VersionKey { - struct { uint32_t version; uint32_t code_version; @@ -141,7 +134,6 @@ private: }; struct VersionKeyHash { - static _FORCE_INLINE_ uint32_t hash(const VersionKey &p_key) { return HashMapHasherDefault::hash(p_key.key); } }; @@ -252,14 +244,12 @@ public: // called a lot, made inline int ShaderGLES2::_get_uniform(int p_which) const { - ERR_FAIL_INDEX_V(p_which, uniform_count, -1); ERR_FAIL_COND_V(!version, -1); return version->uniform_location[p_which]; } void ShaderGLES2::_set_conditional(int p_which, bool p_value) { - ERR_FAIL_INDEX(p_which, conditional_count); if (p_value) new_conditional_version.version |= (1 << p_which); |