diff options
Diffstat (limited to 'WebCore/html/canvas/WebGLFramebuffer.h')
-rw-r--r-- | WebCore/html/canvas/WebGLFramebuffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/html/canvas/WebGLFramebuffer.h b/WebCore/html/canvas/WebGLFramebuffer.h index 394b770..b86417d 100644 --- a/WebCore/html/canvas/WebGLFramebuffer.h +++ b/WebCore/html/canvas/WebGLFramebuffer.h @@ -56,6 +56,10 @@ public: // Return false does not mean COMPLETE, might still be INCOMPLETE. bool isIncomplete(bool checkInternalFormat) const; + bool hasEverBeenBound() const { return object() && m_hasEverBeenBound; } + + void setHasEverBeenBound() { m_hasEverBeenBound = true; } + protected: WebGLFramebuffer(WebGLRenderingContext*); @@ -76,6 +80,8 @@ private: RefPtr<WebGLObject> m_depthAttachment; RefPtr<WebGLObject> m_stencilAttachment; RefPtr<WebGLObject> m_depthStencilAttachment; + + bool m_hasEverBeenBound; }; } // namespace WebCore |