summaryrefslogtreecommitdiffstats
path: root/webkit/gpu
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-17 01:30:53 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-17 01:30:53 +0000
commit9a491bd864f97e71a6f978477eedefc242621d8f (patch)
treeedbc0425ac096bb4416287bbaf4410fa46495247 /webkit/gpu
parent816edc645e5adcffe312aa4f3406969d90f12cca (diff)
downloadchromium_src-9a491bd864f97e71a6f978477eedefc242621d8f.zip
chromium_src-9a491bd864f97e71a6f978477eedefc242621d8f.tar.gz
chromium_src-9a491bd864f97e71a6f978477eedefc242621d8f.tar.bz2
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
Diffstat (limited to 'webkit/gpu')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc6
1 files changed, 3 insertions, 3 deletions
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;
}