dxgsg9: fix compile error due to WeakPointerTo changes

This commit is contained in:
rdb 2018-05-24 14:26:21 +02:00
parent 49dfcb09b9
commit 8eeab7a26a
2 changed files with 5 additions and 2 deletions

View File

@ -31,6 +31,6 @@ DXGeomMunger9(GraphicsStateGuardian *gsg, const RenderState *state) :
} }
// Set a callback to unregister ourselves when either the Texture or the // Set a callback to unregister ourselves when either the Texture or the
// TexGen object gets deleted. // TexGen object gets deleted.
_texture.set_callback(this); _texture.add_callback(this);
_tex_gen.set_callback(this); _tex_gen.add_callback(this);
} }

View File

@ -28,6 +28,9 @@ DXGeomMunger9::
unref_delete(_filtered_texture); unref_delete(_filtered_texture);
_reffed_filtered_texture = false; _reffed_filtered_texture = false;
} }
_texture.remove_callback(this);
_tex_gen.remove_callback(this);
} }
/** /**