diff options
author | 2013-03-01 18:21:22 +0000 | |
---|---|---|
committer | 2013-03-01 18:21:22 +0000 | |
commit | 9b855c7c95ce9fff7a447e4a6bdf8a469c1f3097 (patch) | |
tree | a97672e09387e62ddec1deca227f024806820222 /src/gpu/gl/GrGpuGL.cpp | |
parent | df8114d84616f8a85a5064f8deef2cca083193f8 (diff) |
Resubmit r7899 and r7901.
git-svn-id: http://skia.googlecode.com/svn/trunk@7929 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGpuGL.cpp')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index f9c94c4f78..42e83b0435 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -182,6 +182,10 @@ GrGpuGL::GrGpuGL(const GrGLContext& ctx, GrContext* context) fHWGeometryState.setMaxAttribArrays(this->glCaps().maxVertexAttributes()); + GrAssert(this->glCaps().maxVertexAttributes() >= GrDrawState::kVertexAttribCnt); + GrAssert(this->glCaps().maxVertexAttributes() > GrDrawState::kColorOverrideAttribIndexValue); + GrAssert(this->glCaps().maxVertexAttributes() > GrDrawState::kCoverageOverrideAttribIndexValue); + fLastSuccessfulStencilFmtIdx = 0; if (false) { // avoid bit rot, suppress warning fbo_test(this->glInterface(), 0, 0); |