|
|
@@ -435,6 +435,17 @@ reset_if_new() {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: GraphicsStateGuardian::mark_new
|
|
|
+// Access: Public
|
|
|
+// Description: Marks the GSG as "new", so that the next call to
|
|
|
+// reset_if_new() will be effective.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+INLINE void GraphicsStateGuardian::
|
|
|
+mark_new() {
|
|
|
+ _needs_reset = true;
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: GraphicsStateGuardian::modify_state
|
|
|
// Access: Public
|