summaryrefslogtreecommitdiffstats
path: root/WebCore/html/canvas/WebGLObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/canvas/WebGLObject.cpp')
-rw-r--r--WebCore/html/canvas/WebGLObject.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/WebCore/html/canvas/WebGLObject.cpp b/WebCore/html/canvas/WebGLObject.cpp
index 5fd5534..8aa4663 100644
--- a/WebCore/html/canvas/WebGLObject.cpp
+++ b/WebCore/html/canvas/WebGLObject.cpp
@@ -49,10 +49,8 @@ WebGLObject::~WebGLObject()
void WebGLObject::setObject(Platform3DObject object)
{
- if (object == m_object)
- return;
-
- deleteObject();
+ // object==0 && m_deleted==false indicating an uninitialized state;
+ ASSERT(!m_object && !m_deleted);
m_object = object;
}