update tracy from 11.0 to 13.1 and fix build with tracy enabled
This commit is contained in:
+3
-3
@@ -94,7 +94,7 @@ static mat4x4 inverse_view_matrix;
|
||||
static mat4x4 projection_matrix;
|
||||
static mat4x4 inverse_projection_matrix;
|
||||
|
||||
static SDL_Time time;
|
||||
static SDL_Time current_time;
|
||||
|
||||
static bool enable_time_tints = true;
|
||||
static bool use_actual_time = true;
|
||||
@@ -2350,10 +2350,10 @@ static void process_events() {
|
||||
static void update_state() {
|
||||
ZoneScopedN("update_state");
|
||||
|
||||
SDL_GetCurrentTime(&time);
|
||||
SDL_GetCurrentTime(¤t_time);
|
||||
|
||||
if (use_actual_time)
|
||||
SDL_TimeToDateTime(time, &calendar_time, true);
|
||||
SDL_TimeToDateTime(current_time, &calendar_time, true);
|
||||
|
||||
calendar_time.minute += calendar_time.second >= 0 ? calendar_time.second / 60 : calendar_time.second / 60 - 1;
|
||||
calendar_time.hour += calendar_time.minute >= 0 ? calendar_time.minute / 60 : calendar_time.minute / 60 - 1;
|
||||
|
||||
Reference in New Issue
Block a user