diff options
| author | Jesse Hall <jessehall@google.com> | 2012-04-26 11:07:40 -0700 |
|---|---|---|
| committer | Jesse Hall <jessehall@google.com> | 2012-05-01 13:20:12 -0700 |
| commit | 81e372046c2212585a4ff518ccdcff950d476717 (patch) | |
| tree | 0ca66a298762a5a05bfd6827d7c45f6e6ab55088 /emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp | |
| parent | 5bd2fe9745469018aac48bde2ff05f72138b9ffa (diff) | |
| download | sdk-81e372046c2212585a4ff518ccdcff950d476717.zip sdk-81e372046c2212585a4ff518ccdcff950d476717.tar.gz sdk-81e372046c2212585a4ff518ccdcff950d476717.tar.bz2 | |
Export GL strings through render_api
This also changes the strings reported by the default OpenGL ES
1.1/2.0 to OpenGL translators so they include the strings from the
underlying OpenGL implementation. This will give more useful bug
reports and SDK deployment statistics.
Change-Id: Id2d231a4fe3c40157c24a63ec19785826e037fd3
Diffstat (limited to 'emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp')
| -rw-r--r-- | emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp b/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp index abf461c..ecf51bb 100644 --- a/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp +++ b/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmContext.cpp @@ -31,13 +31,10 @@ void GLEScmContext::init() { m_texCoords = new GLESpointer[s_glSupport.maxTexUnits]; m_map[GL_TEXTURE_COORD_ARRAY] = &m_texCoords[m_clientActiveTexture]; - const char* baseRenderer = (const char*)dispatcher().glGetString(GL_RENDERER); - size_t baseRendererLen = strlen(baseRenderer); - s_glRenderer.clear(); - s_glRenderer.reserve(19 + baseRendererLen); - s_glRenderer.append("OpenGL ES-CM 1.1 (", 18); - s_glRenderer.append(baseRenderer, baseRendererLen); - s_glRenderer.append(")", 1); + buildStrings((const char*)dispatcher().glGetString(GL_VENDOR), + (const char*)dispatcher().glGetString(GL_RENDERER), + (const char*)dispatcher().glGetString(GL_VERSION), + "OpenGL ES-CM 1.1"); } m_initialized = true; } |
