Commit 8190aed1 authored by ccameron@chromium.org's avatar ccameron@chromium.org

Return the shared context's handle when a virtualized context's

handle is requested.

GLES2DecoderImpl::DoTexImageIOSurface2DCHROMIUM uses
GLContext::GetHandle's result as an argument to 
CGLTexImageIOSurface2D, which expects a valid CGLContextObj
as the handle (not NULL).

BUG=230300

Review URL: https://chromiumcodereview.appspot.com/14241007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195390 0039d316-1c4b-4281-b951-d872f2087c98
parent 43701242
......@@ -73,7 +73,7 @@ bool GLContextVirtual::IsCurrent(gfx::GLSurface* surface) {
}
void* GLContextVirtual::GetHandle() {
return NULL;
return shared_context_->GetHandle();
}
gfx::GLStateRestorer* GLContextVirtual::GetGLStateRestorer() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment