Do not use atomic_load() with variables that are not atomic.

This commit is contained in:
OBattler
2023-08-12 01:15:06 +02:00
parent c166db004e
commit 6ceb63aacc

View File

@@ -423,8 +423,8 @@ mouse_set_buttons(int buttons)
void
mouse_get_abs_coords(double *x_abs, double *y_abs)
{
*x_abs = atomic_load(&mouse_x_abs);
*y_abs = atomic_load(&mouse_y_abs);
*x_abs = mouse_x_abs;
*y_abs = mouse_y_abs;
}
void