aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-26 19:40:46 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-26 19:40:46 +0000
commit4f65a2750007725349774e53067df3307376257c (patch)
tree02a12a7e67fd5c6aba99283f07dacd169f0e999c /src/gpu
parentad9327f0362599ee97d09fbe2a0693895ed8d4b2 (diff)
Address clang static analyzer issues
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/effects/GrTextureStripAtlas.cpp3
-rw-r--r--src/gpu/gl/GrGpuGL.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/effects/GrTextureStripAtlas.cpp b/src/gpu/effects/GrTextureStripAtlas.cpp
index c67a112811..f726b25cf9 100644
--- a/src/gpu/effects/GrTextureStripAtlas.cpp
+++ b/src/gpu/effects/GrTextureStripAtlas.cpp
@@ -229,7 +229,8 @@ void GrTextureStripAtlas::initLRU() {
fRows[i].fPrev = NULL;
this->appendLRU(fRows + i);
}
- GrAssert(NULL == fLRUFront->fPrev && NULL == fLRUBack->fNext);
+ GrAssert(NULL == fLRUFront || NULL == fLRUFront->fPrev);
+ GrAssert(NULL == fLRUBack || NULL == fLRUBack->fNext);
}
void GrTextureStripAtlas::appendLRU(AtlasRow* row) {
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()) {