diff options
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLObject.h')
-rw-r--r-- | Source/WebCore/html/canvas/WebGLObject.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/WebCore/html/canvas/WebGLObject.h b/Source/WebCore/html/canvas/WebGLObject.h index 3bb9f29..44cc36f 100644 --- a/Source/WebCore/html/canvas/WebGLObject.h +++ b/Source/WebCore/html/canvas/WebGLObject.h @@ -46,12 +46,7 @@ public: // FIXME: revisit this when resource sharing between contexts are implemented. void deleteObject(); - void detachContext() - { - m_attachmentCount = 0; // Make sure OpenGL resource is deleted. - deleteObject(); - m_context = 0; - } + void detachContext(); WebGLRenderingContext* context() const { return m_context; } |