summaryrefslogtreecommitdiff
path: root/game/src/plugins/texture_view.c
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-02-08 07:58:22 -0800
committer3gg <3gg@shellblade.net>2024-02-08 07:58:22 -0800
commitd130c2c7314cf4884f444db16d7717b7356b54ff (patch)
tree19080622054c32b5e09b5f455b4a8490e7ae6048 /game/src/plugins/texture_view.c
parentdda4b3e598c7c955a44e3874bf2c57bd16b1c3ea (diff)
Add window width and height to game.
Diffstat (limited to 'game/src/plugins/texture_view.c')
-rw-r--r--game/src/plugins/texture_view.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/game/src/plugins/texture_view.c b/game/src/plugins/texture_view.c
index b424158..31bf23e 100644
--- a/game/src/plugins/texture_view.c
+++ b/game/src/plugins/texture_view.c
@@ -133,9 +133,6 @@ void resize(Game* game, State* state, int width, int height) {
133 assert(game); 133 assert(game);
134 assert(state); 134 assert(state);
135 135
136 RenderBackend* render_backend = gfx_get_render_backend(game->gfx);
137 gfx_set_viewport(render_backend, width, height);
138
139 const R fovy = 90 * TO_RAD; 136 const R fovy = 90 * TO_RAD;
140 const R aspect = (R)width / (R)height; 137 const R aspect = (R)width / (R)height;
141 const R near = 0.1; 138 const R near = 0.1;