diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-08 12:49:49 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-08 12:49:49 +0000 |
commit | 1b8014ce82d7ff04fdcd81d6591c27bc6fd0dc0f (patch) | |
tree | 70d8ba47ec592a2da9f58cc68a80004a8700261b /src | |
parent | 32ecf40696e6fae9c3692751b64453beadd142ee (diff) |
Comment out invalid assert.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/15021008
git-svn-id: http://skia.googlecode.com/svn/trunk@9053 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLBufferImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLBufferImpl.cpp b/src/gpu/gl/GrGLBufferImpl.cpp index 0723bd25a6..2dfa9d5d10 100644 --- a/src/gpu/gl/GrGLBufferImpl.cpp +++ b/src/gpu/gl/GrGLBufferImpl.cpp @@ -158,7 +158,8 @@ bool GrGLBufferImpl::updateData(GrGpuGL* gpu, const void* src, size_t srcSizeInB void GrGLBufferImpl::validate() const { GrAssert(GR_GL_ARRAY_BUFFER == fBufferType || GR_GL_ELEMENT_ARRAY_BUFFER == fBufferType); - GrAssert((0 == fDesc.fID) == (NULL != fCPUData)); + // The following assert isn't valid when the buffer has been abandoned: + // GrAssert((0 == fDesc.fID) == (NULL != fCPUData)); GrAssert(0 != fDesc.fID || !fDesc.fIsWrapped); GrAssert(NULL == fCPUData || NULL == fLockPtr || fCPUData == fLockPtr); } |