@@ -184,6 +184,8 @@ THREE.WebGLRenderer = function ( parameters ) {
setDefaultGLState();
objects.objects = {};
+ objects.webGLProps.deleteAll();
+ webGLProps.deleteAll();
}, false);
@@ -67,6 +67,7 @@ THREE.WebGLObjects = function ( gl, info ) {
this.objects = objects;
this.objectsImmediate = objectsImmediate;
+ this.webGLProps = webGLProps;
this.geometries = geometries;
@@ -6,6 +6,12 @@ THREE.WebGLProperties = function () {
var properties = {};
+ this.deleteAll = function () {
+
+ properties = {};
+ }
this.delete = function ( object ) {
delete properties[ object.uuid ];