diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2017-05-16 14:42:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-16 14:42:32 +0300 |
commit | d2f79bd2c7004af2d1459e8d5b7748763f241a54 (patch) | |
tree | 64300bccb750e59f7c3a05800eafcd5c3b3f89cb /drape/glconstants.cpp | |
parent | aa6703383e8d4c2ff8445e8b3c27728846cdab4b (diff) | |
parent | 086d6f9cf247cea07cff6bc33d5567dc7c64806b (diff) |
Merge pull request #6040 from rokuz/es3-supportbeta-810
Added OpenGL ES3 support
Diffstat (limited to 'drape/glconstants.cpp')
-rw-r--r-- | drape/glconstants.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drape/glconstants.cpp b/drape/glconstants.cpp index e934c7be71..0c3c0f5724 100644 --- a/drape/glconstants.cpp +++ b/drape/glconstants.cpp @@ -25,6 +25,14 @@ #define GL_LUMINANCE8_ALPHA4_OES 0x8043 #endif +#if !defined(GL_LUMINANCE) + #define GL_LUMINANCE 0x1909 +#endif + +#if !defined(GL_LUMINANCE_ALPHA) + #define GL_LUMINANCE_ALPHA 0x190A +#endif + #if defined(GL_WRITE_ONLY) #define WRITE_ONLY_DEF GL_WRITE_ONLY #elif defined(GL_WRITE_ONLY_OES) @@ -125,6 +133,7 @@ const glConst GLAlpha8 = GL_ALPHA8_OES; const glConst GLLuminance8 = GL_LUMINANCE8_OES; const glConst GLAlphaLuminance8 = GL_LUMINANCE8_ALPHA8_OES; const glConst GLAlphaLuminance4 = GL_LUMINANCE8_ALPHA4_OES; +const glConst GLRed = GL_RED; const glConst GL8BitOnChannel = GL_UNSIGNED_BYTE; const glConst GL4BitOnChannel = GL_UNSIGNED_SHORT_4_4_4_4; |