Add a monotonically incrementing counter to UpdateWindows calls
This is for checking draw cache validity
This commit is contained in:
@@ -149,6 +149,18 @@ extern Window *_z_front_window;
|
||||
extern Window *_z_back_window;
|
||||
extern Window *_focused_window;
|
||||
|
||||
inline uint64 GetWindowUpdateNumber()
|
||||
{
|
||||
extern uint64 _window_update_number;
|
||||
return _window_update_number;
|
||||
}
|
||||
|
||||
inline void IncrementWindowUpdateNumber()
|
||||
{
|
||||
extern uint64 _window_update_number;
|
||||
_window_update_number++;
|
||||
}
|
||||
|
||||
|
||||
/** How do we the window to be placed? */
|
||||
enum WindowPosition {
|
||||
|
Reference in New Issue
Block a user