From ae51d195b0e1bfaba2243f005a1aba675395595f Mon Sep 17 00:00:00 2001 From: "gman@chromium.org" Date: Tue, 27 Apr 2010 00:48:03 +0000 Subject: Changes the code to use separate ids namspaces for buffers, textures, programs, etc.. This is needed to pass GLES2 conformance tests. TEST=old unit tests BUG=none Review URL: http://codereview.chromium.org/1747013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45654 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/ggl/ggl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/renderer') diff --git a/chrome/renderer/ggl/ggl.cc b/chrome/renderer/ggl/ggl.cc index 8973dda..a6f1314 100644 --- a/chrome/renderer/ggl/ggl.cc +++ b/chrome/renderer/ggl/ggl.cc @@ -120,7 +120,7 @@ bool Context::Initialize(gfx::NativeViewId view, const gfx::Size& size) { // Allocate a frame buffer ID with respect to the parent. if (parent_) { - parent_->gles2_implementation_->MakeIds(1, &parent_texture_id_); + parent_texture_id_ = parent_->gles2_implementation_->MakeTextureId(); } // Create a proxy to a command buffer in the GPU process. @@ -186,7 +186,7 @@ void Context::ResizeOffscreen(const gfx::Size& size) { void Context::Destroy() { if (parent_ && parent_texture_id_ != 0) - parent_->gles2_implementation_->FreeIds(1, &parent_texture_id_); + parent_->gles2_implementation_->FreeTextureId(parent_texture_id_); delete gles2_implementation_; gles2_implementation_ = NULL; -- cgit v1.1