rendering.c: only update opengl viewport once it's actually changed

This commit is contained in:
2024-07-27 17:10:08 +03:00
parent 79bc261ccd
commit f5ba4a75bd
4 changed files with 25 additions and 20 deletions

View File

@ -54,7 +54,6 @@ struct action_hash_item {
struct input_state {
struct action_hash_item *action_hash;
SDL_Renderer *renderer; /* some input relates to the screen in some way */
const uint8_t *keyboard_state; /* array of booleans indexed by scancode */
uint32_t mouse_state; /* SDL mouse button bitmask */
t_vec2 mouse_window_position;