From 4f65a2750007725349774e53067df3307376257c Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Tue, 26 Mar 2013 19:40:46 +0000 Subject: Address clang static analyzer issues https://codereview.chromium.org/12940011/ git-svn-id: http://skia.googlecode.com/svn/trunk@8401 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/GrGpuGL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gpu/gl') diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index cf4acd5f0c..d03ef781e1 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -2236,7 +2236,8 @@ GrGLAttribArrayState* GrGpuGL::HWGeometryState::bindArrayAndBuffersToDraw( const GrGLVertexBuffer* vbuffer, const GrGLIndexBuffer* ibuffer) { GrAssert(NULL != vbuffer); - GrGLAttribArrayState* attribState = &fDefaultVertexArrayAttribState; + GrGLAttribArrayState* attribState; + // We use a vertex array if we're on a core profile and the verts are in a VBO. if (gpu->glCaps().isCoreProfile() && !vbuffer->isCPUBacked()) { if (NULL == fVBOVertexArray || !fVBOVertexArray->isValid()) { -- cgit v1.2.3