diff options
author | 2016-11-30 14:33:42 -0500 | |
---|---|---|
committer | 2016-11-30 20:51:02 +0000 | |
commit | 94e4ab1e353f2202369798045ec3dfe0a89c9bbe (patch) | |
tree | aff46ce8ee66971c32097ede0a0181de767194a6 /src/gpu/gl | |
parent | 08c79b855679f175c099f9038198ec657b40ea12 (diff) |
Fix error: ‘access’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
in GrGLGpu::bindImageStorage.
Found because this broke the compiles for the debugger, imageinfo, and fiddle,
but apparently not any bots?
BUG=skia:
Change-Id: Id8f964bca4f6493428b35c1b64df468b9d1419db
Reviewed-on: https://skia-review.googlesource.com/5380
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index d3f13d061c..4820ca8e16 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -3356,7 +3356,7 @@ void GrGLGpu::bindImageStorage(int unitIdx, GrIOType ioType, GrGLTexture *textur SkASSERT(texture); if (texture->uniqueID() != fHWBoundImageStorages[unitIdx].fTextureUniqueID || ioType != fHWBoundImageStorages[unitIdx].fIOType) { - GrGLenum access; + GrGLenum access = GR_GL_READ_ONLY; switch (ioType) { case kRead_GrIOType: access = GR_GL_READ_ONLY; |