summaryrefslogtreecommitdiffstats
path: root/webkit/gpu
diff options
context:
space:
mode:
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;
}