mirror of
https://github.com/open-goal/jak-project
synced 2026-09-10 04:22:13 -04:00
a better way
This commit is contained in:
@@ -517,9 +517,8 @@ void GLDisplay::render() {
|
||||
// render game!
|
||||
if (g_gfx_data->debug_gui.should_advance_frame()) {
|
||||
auto p = scoped_prof("game-render");
|
||||
render_game_frame(windowed() ? win_w : Gfx::g_global_settings.game_res_w,
|
||||
windowed() ? win_h : Gfx::g_global_settings.game_res_h, win_w, win_h, lbox_w,
|
||||
lbox_h, Gfx::g_global_settings.msaa_samples);
|
||||
render_game_frame(Gfx::g_global_settings.game_res_w, Gfx::g_global_settings.game_res_h, win_w,
|
||||
win_h, lbox_w, lbox_h, Gfx::g_global_settings.msaa_samples);
|
||||
}
|
||||
|
||||
if (g_gfx_data->debug_gui.should_gl_finish()) {
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
)
|
||||
;; do game resolution
|
||||
(if (= (-> obj display-mode) 'windowed)
|
||||
(pc-set-game-resolution (-> obj win-width) (-> obj win-height))
|
||||
(pc-set-game-resolution (-> obj real-width) (-> obj real-height))
|
||||
(pc-set-game-resolution (-> obj width) (-> obj height)))
|
||||
|
||||
;; set msaa sample rate. if invalid, just reset to 4.
|
||||
|
||||
Reference in New Issue
Block a user