summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 75143c0..0bd0580 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -148,7 +148,9 @@ int main(int argc, char **argv) {
#endif /* STRIP_ALL */
platform_init_window(fullscreen_enabled);
- gpu_init(platform_get_window());
+ int width, height;
+ glfwGetFramebufferSize(platform_get_window(), &width, &height);
+ gpu_init(platform_get_window(), width, height);
audio_init();
// Register drum assets