diff options
author | David Turner <digit@google.com> | 2015-07-16 11:35:20 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-07-16 11:35:20 +0000 |
commit | d5cbc3a031cfe33f0f2505c6efabdb4ccd5d0e21 (patch) | |
tree | 91819685896feeab4abd62976ad3d0a3a62d1678 | |
parent | 3fc679759f303bf583c643f26ae236ba2a997a77 (diff) | |
parent | a9fc4063095c729f6dc7392ee83ff01a553be00a (diff) | |
download | qemu-d5cbc3a031cfe33f0f2505c6efabdb4ccd5d0e21.tar.gz |
Merge "Better support for openGLES 2.0 extensions" into studio-1.4-dev
automerge: a9fc406
* commit 'a9fc4063095c729f6dc7392ee83ff01a553be00a':
Better support for openGLES 2.0 extensions
3 files changed, 16 insertions, 3 deletions
diff --git a/distrib/android-emugl/host/libs/Translator/GLES_V2/GLESv2Context.cpp b/distrib/android-emugl/host/libs/Translator/GLES_V2/GLESv2Context.cpp index 02c7276737..a49cefa465 100644 --- a/distrib/android-emugl/host/libs/Translator/GLES_V2/GLESv2Context.cpp +++ b/distrib/android-emugl/host/libs/Translator/GLES_V2/GLESv2Context.cpp @@ -155,9 +155,18 @@ void GLESv2Context::initExtensionString() { if (s_glSupport.GL_OES_STANDARD_DERIVATIVES) *s_glExtensions+="GL_OES_standard_derivatives "; if (s_glSupport.GL_OES_TEXTURE_NPOT) - *s_glExtensions+="GL_OES_texture_npot"; - if (s_glSupport.GL_OES_RGB8_RGBA8) { - *s_glExtensions+=" GL_OES_rgb8_rgba8"; + *s_glExtensions+="GL_OES_texture_npot "; + if (s_glSupport.GL_OES_RGB8_RGBA8) + *s_glExtensions+="GL_OES_rgb8_rgba8 "; + if (s_glSupport.GL_OES_READ_FORMAT) + *s_glExtensions+="GL_OES_read_format "; + if (s_glSupport.GL_EXT_TEXTURE_STORAGE) + *s_glExtensions+="GL_EXT_texture_storage "; + if (s_glSupport.GL_EXT_TEXTURE_FORMAT_BGRA8888) + *s_glExtensions+="GL_EXT_texture_format_BGRA8888 "; + if (s_glSupport.GL_EXT_FRAMEBUFFER_OBJECT) { + *s_glExtensions+="GL_OES_framebuffer_object GL_OES_depth24 GL_OES_depth32 GL_OES_fbo_render_mipmap " + "GL_OES_rgb8_rgba8 GL_OES_stencil1 GL_OES_stencil4 GL_OES_stencil8 "; } } diff --git a/distrib/android-emugl/host/libs/Translator/GLcommon/GLEScontext.cpp b/distrib/android-emugl/host/libs/Translator/GLcommon/GLEScontext.cpp index ab37ca97ed..d460de56ff 100644 --- a/distrib/android-emugl/host/libs/Translator/GLcommon/GLEScontext.cpp +++ b/distrib/android-emugl/host/libs/Translator/GLcommon/GLEScontext.cpp @@ -518,6 +518,9 @@ void GLEScontext::initCapsLocked(const GLubyte * extensionString) s_glSupport.glslVersion = Version((const char*)(glslVersion)); const GLubyte* glVersion = s_glDispatch.glGetString(GL_VERSION); + if (strstr(cstring,"GL_EXT_texture_storage ")!=NULL) + s_glSupport.GL_EXT_TEXTURE_STORAGE = true; + if (strstr(cstring,"GL_EXT_bgra ")!=NULL) s_glSupport.GL_EXT_TEXTURE_FORMAT_BGRA8888 = true; diff --git a/distrib/android-emugl/host/libs/Translator/include/GLcommon/GLEScontext.h b/distrib/android-emugl/host/libs/Translator/include/GLcommon/GLEScontext.h index d6c6105930..5621fbc108 100644 --- a/distrib/android-emugl/host/libs/Translator/include/GLcommon/GLEScontext.h +++ b/distrib/android-emugl/host/libs/Translator/include/GLcommon/GLEScontext.h @@ -83,6 +83,7 @@ struct GLSupport { bool GL_OES_STANDARD_DERIVATIVES; bool GL_OES_TEXTURE_NPOT; bool GL_OES_RGB8_RGBA8; + bool GL_EXT_TEXTURE_STORAGE; }; |