summaryrefslogtreecommitdiffstats
path: root/WebCore/html/canvas/WebGLBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/canvas/WebGLBuffer.h')
-rw-r--r--WebCore/html/canvas/WebGLBuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/html/canvas/WebGLBuffer.h b/WebCore/html/canvas/WebGLBuffer.h
index f18a9bf..af819a3 100644
--- a/WebCore/html/canvas/WebGLBuffer.h
+++ b/WebCore/html/canvas/WebGLBuffer.h
@@ -59,6 +59,8 @@ public:
unsigned long getTarget() const { return m_target; }
void setTarget(unsigned long);
+ bool hasEverBeenBound() const { return object() && m_target; }
+
protected:
WebGLBuffer(WebGLRenderingContext*);