diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-24 14:20:00 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-24 14:20:00 +0000 |
commit | 5b5bba36dcbc69b0033c2acc9981734956394816 (patch) | |
tree | 3a7b1e5cb7590602130ec281bffa55efcdc333c6 /src/gpu/gl | |
parent | 56072f9eccd726c659c5422f2cb1966d3c79bf3c (diff) |
Addressed xcode analysis complaints
http://codereview.appspot.com/6558048/
git-svn-id: http://skia.googlecode.com/svn/trunk@5646 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGLSL.cpp | 2 | ||||
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/gpu/gl/GrGLSL.cpp b/src/gpu/gl/GrGLSL.cpp index 079c08232f..420af03a79 100644 --- a/src/gpu/gl/GrGLSL.cpp +++ b/src/gpu/gl/GrGLSL.cpp @@ -91,7 +91,7 @@ const char* GrGLSLVectorNonhomogCoords(int count) { return NONHOMOGS[count]; } -const char* GrGLSLVectorNonhomogCoord(GrSLType type) { +const char* GrGLSLVectorNonhomogCoords(GrSLType type) { return GrGLSLVectorNonhomogCoords(GrSLTypeToVecLength(type)); } diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index d9988c42e2..157d9bc2ec 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -1073,8 +1073,6 @@ bool GrGpuGL::createStencilBufferForRenderTarget(GrRenderTarget* rt, return false; } - GrGLStencilBuffer* sb = NULL; - int stencilFmtCnt = this->glCaps().stencilFormats().count(); for (int i = 0; i < stencilFmtCnt; ++i) { GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER, sbID)); @@ -2032,7 +2030,6 @@ void GrGpuGL::flushBoundTextureAndParams(int stage) { void GrGpuGL::flushBoundTextureAndParams(int stage, const GrTextureParams& params, GrGLTexture* nextTexture) { - GrDrawState* drawState = this->drawState(); // true for now, but maybe not with GrEffect. GrAssert(NULL != nextTexture); |