summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/TransferQueue.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-11-02 14:35:24 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-11-02 14:38:44 -0700
commit092270aeda4095dfd07d579f1d2e99bcdf386c04 (patch)
treebca36a6d935e6a592ff1fe8b10fcb0a7e14970c7 /Source/WebCore/platform/graphics/android/TransferQueue.cpp
parent3450eb63fce89339f9625eb1b9ccf62b6b6bf29f (diff)
downloadexternal_webkit-092270aeda4095dfd07d579f1d2e99bcdf386c04.zip
external_webkit-092270aeda4095dfd07d579f1d2e99bcdf386c04.tar.gz
external_webkit-092270aeda4095dfd07d579f1d2e99bcdf386c04.tar.bz2
compiler error fix when DEBUG is on
Change-Id: I6fbaa9dfe50752fa5ec95cd43ed50306b63270f3
Diffstat (limited to 'Source/WebCore/platform/graphics/android/TransferQueue.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/TransferQueue.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/TransferQueue.cpp b/Source/WebCore/platform/graphics/android/TransferQueue.cpp
index 5c4f0f3..dd72f0d 100644
--- a/Source/WebCore/platform/graphics/android/TransferQueue.cpp
+++ b/Source/WebCore/platform/graphics/android/TransferQueue.cpp
@@ -518,7 +518,7 @@ void TransferQueue::saveGLState()
glGetIntegerv(GL_VIEWPORT, m_GLStateBeforeBlit.viewport);
glGetBooleanv(GL_SCISSOR_TEST, m_GLStateBeforeBlit.scissor);
glGetBooleanv(GL_DEPTH_TEST, m_GLStateBeforeBlit.depth);
-#if DEBUG
+#ifdef DEBUG
glGetFloatv(GL_COLOR_CLEAR_VALUE, m_GLStateBeforeBlit.clearColor);
#endif
}
@@ -530,7 +530,7 @@ void TransferQueue::setGLStateForCopy(int width, int height)
glDisable(GL_SCISSOR_TEST);
glDisable(GL_DEPTH_TEST);
// Clear the content is only for debug purpose.
-#if DEBUG
+#ifdef DEBUG
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
#endif
@@ -548,7 +548,7 @@ void TransferQueue::restoreGLState()
if (m_GLStateBeforeBlit.depth[0])
glEnable(GL_DEPTH_TEST);
-#if DEBUG
+#ifdef DEBUG
glClearColor(m_GLStateBeforeBlit.clearColor[0],
m_GLStateBeforeBlit.clearColor[1],
m_GLStateBeforeBlit.clearColor[2],