aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-08 16:45:22 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-08 16:45:22 +0000
commitd850c18fdf3d69cb22316ca277ea828d4dd0a678 (patch)
treeca5b713528dda80b1e03f508f1b0f40c22f6ef09
parent3f5a95e9745c5ea1f960d1454cf7df5942fa5ded (diff)
Turn off pedantic check that causes too much noise in GL logs.
git-svn-id: http://skia.googlecode.com/svn/trunk@3343 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/gpu/gl/GrGLIndexBuffer.cpp3
-rw-r--r--src/gpu/gl/GrGLVertexBuffer.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLIndexBuffer.cpp b/src/gpu/gl/GrGLIndexBuffer.cpp
index 60bd9a9e3c..b99bdd4036 100644
--- a/src/gpu/gl/GrGLIndexBuffer.cpp
+++ b/src/gpu/gl/GrGLIndexBuffer.cpp
@@ -84,7 +84,8 @@ void GrGLIndexBuffer::unlock() {
}
bool GrGLIndexBuffer::isLocked() const {
-#if GR_DEBUG
+ // this check causes a lot of noise in the gl log
+#if 0
if (this->isValid() && this->getGpu()->getCaps().fBufferLockSupport) {
this->bind();
GrGLint mapped;
diff --git a/src/gpu/gl/GrGLVertexBuffer.cpp b/src/gpu/gl/GrGLVertexBuffer.cpp
index 48479dcf44..5c94c36309 100644
--- a/src/gpu/gl/GrGLVertexBuffer.cpp
+++ b/src/gpu/gl/GrGLVertexBuffer.cpp
@@ -81,7 +81,8 @@ void GrGLVertexBuffer::unlock() {
bool GrGLVertexBuffer::isLocked() const {
GrAssert(!this->isValid() || fBufferID);
-#if GR_DEBUG
+ // this check causes a lot of noise in the gl log
+#if 0
if (this->isValid() && this->getGpu()->getCaps().fBufferLockSupport) {
GrGLint mapped;
this->bind();