aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Rob Phillips <phillipsfamily.rob@gmail.com>2017-09-05 19:56:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-06 00:42:52 +0000
commitbc534f6888b17958e80c848d88fa4fe7a3d3ea04 (patch)
treebf58009463787ed2b808f63cfa8cd5d188c5745d /src
parent16e226b1d6f7be68d56fbe09511c4fac0b655346 (diff)
Init hardware buffer state in GrGLGpu
Change-Id: I827e158703941ef61b2f390751b7521acdeeb951 Reviewed-on: https://skia-review.googlesource.com/42824 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGLGpu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
index b9c172a776..a127c37f2d 100644
--- a/src/gpu/gl/GrGLGpu.cpp
+++ b/src/gpu/gl/GrGLGpu.cpp
@@ -245,6 +245,9 @@ GrGLGpu::GrGLGpu(GrGLContext* ctx, GrContext* context)
fHWBufferState[kXferCpuToGpu_GrBufferType].fGLTarget = GR_GL_PIXEL_UNPACK_BUFFER;
fHWBufferState[kXferGpuToCpu_GrBufferType].fGLTarget = GR_GL_PIXEL_PACK_BUFFER;
}
+ for (int i = 0; i < kGrBufferTypeCount; ++i) {
+ fHWBufferState[i].invalidate();
+ }
GR_STATIC_ASSERT(6 == SK_ARRAY_COUNT(fHWBufferState));
if (this->caps()->shaderCaps()->texelBufferSupport()) {