diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 20:24:29 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 20:24:29 +0000 |
commit | d7a49c7c5c445c4f911c65e834305c03604a9ede (patch) | |
tree | f7cb0460d0f039493c4b9bb4595a6b38ee291ebe /gpu/command_buffer/service/context_group.cc | |
parent | 8c0961b656484937566ed3b64354991f5a21dad1 (diff) | |
download | chromium_src-d7a49c7c5c445c4f911c65e834305c03604a9ede.zip chromium_src-d7a49c7c5c445c4f911c65e834305c03604a9ede.tar.gz chromium_src-d7a49c7c5c445c4f911c65e834305c03604a9ede.tar.bz2 |
Add support for GL_OES_depth24
Apparently there is no way to test for support for 24bit
renderbuffers on desktop GL. They are just supposed to
work or something.
TEST=unit tests
BUG=53358
Review URL: http://codereview.chromium.org/3167041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/context_group.cc')
-rw-r--r-- | gpu/command_buffer/service/context_group.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc index 8c85917..b4737ed 100644 --- a/gpu/command_buffer/service/context_group.cc +++ b/gpu/command_buffer/service/context_group.cc @@ -206,8 +206,13 @@ bool ContextGroup::Initialize() { AddExtensionString("GL_EXT_framebuffer_blit"); } + if (strstr(extensions, "GL_OES_depth24") || + gfx::GetGLImplementation() == gfx::kGLImplementationDesktopGL) { + AddExtensionString("GL_OES_depth24"); + validators_.render_buffer_format.AddValue(GL_DEPTH_COMPONENT24); + } + // TODO(gman): Add support for these extensions. - // GL_OES_depth24 // GL_OES_depth32 // GL_OES_element_index_uint |