mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
release_all_geoms
This commit is contained in:
parent
9d44c1a374
commit
e04bc8d4ed
@ -51,6 +51,17 @@ release_all_textures() {
|
|||||||
return _prepared_objects->release_all_textures();
|
return _prepared_objects->release_all_textures();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: GraphicsStateGuardian::release_all_geoms
|
||||||
|
// Access: Public
|
||||||
|
// Description: Frees the resources for all geoms associated with
|
||||||
|
// this GSG.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE int GraphicsStateGuardian::
|
||||||
|
release_all_geoms() {
|
||||||
|
return _prepared_objects->release_all_geoms();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: GraphicsStateGuardian::set_active
|
// Function: GraphicsStateGuardian::set_active
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -1229,7 +1229,7 @@ close_gsg() {
|
|||||||
free_pointers();
|
free_pointers();
|
||||||
|
|
||||||
// If we're not sharing the prepared objects list with any other
|
// If we're not sharing the prepared objects list with any other
|
||||||
// GSG, go ahread and release all the textures and geoms now. This
|
// GSG, go ahead and release all the textures and geoms now. This
|
||||||
// isn't really a reliable test of whether we are sharing this list,
|
// isn't really a reliable test of whether we are sharing this list,
|
||||||
// but it's not too important if we get this wrong since this ought
|
// but it's not too important if we get this wrong since this ought
|
||||||
// to be an optional cleanup anyway. (Presumably, the underlying
|
// to be an optional cleanup anyway. (Presumably, the underlying
|
||||||
@ -1237,7 +1237,7 @@ close_gsg() {
|
|||||||
// geoms when the last context using them is released.)
|
// geoms when the last context using them is released.)
|
||||||
if (_prepared_objects->get_ref_count() == 1) {
|
if (_prepared_objects->get_ref_count() == 1) {
|
||||||
release_all_textures();
|
release_all_textures();
|
||||||
//release_all_geoms();
|
release_all_geoms();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ public:
|
|||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE int release_all_textures();
|
INLINE int release_all_textures();
|
||||||
// int release_all_geoms();
|
INLINE int release_all_geoms();
|
||||||
|
|
||||||
INLINE void set_active(bool active);
|
INLINE void set_active(bool active);
|
||||||
INLINE bool is_active() const;
|
INLINE bool is_active() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user