From 9a491bd864f97e71a6f978477eedefc242621d8f Mon Sep 17 00:00:00 2001 From: "reveman@chromium.org" Date: Sat, 17 Mar 2012 01:30:53 +0000 Subject: Consistent initialization of GL objects in WebGraphicsContext3DInProcessImpl class. BUG=117768 TEST=none Review URL: http://codereview.chromium.org/9691057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127319 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/gpu/webgraphicscontext3d_in_process_impl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webkit/gpu') diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc index 25b4559..0a331f4 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc @@ -1535,7 +1535,7 @@ DELEGATE_TO_GL_4(viewport, Viewport, WGC3Dint, WGC3Dint, WGC3Dsizei, WGC3Dsizei) WebGLId WebGraphicsContext3DInProcessImpl::createBuffer() { makeContextCurrent(); - GLuint o; + GLuint o = 0; glGenBuffersARB(1, &o); return o; } @@ -1554,7 +1554,7 @@ WebGLId WebGraphicsContext3DInProcessImpl::createProgram() { WebGLId WebGraphicsContext3DInProcessImpl::createRenderbuffer() { makeContextCurrent(); - GLuint o; + GLuint o = 0; glGenRenderbuffersEXT(1, &o); return o; } @@ -1579,7 +1579,7 @@ WebGLId WebGraphicsContext3DInProcessImpl::createShader( WebGLId WebGraphicsContext3DInProcessImpl::createTexture() { makeContextCurrent(); - GLuint o; + GLuint o = 0; glGenTextures(1, &o); return o; } -- cgit v1.1