mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
dxgsg9: fix compile error due to WeakPointerTo changes
This commit is contained in:
parent
49dfcb09b9
commit
8eeab7a26a
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user