aboutsummaryrefslogtreecommitdiffstats
path: root/renderer.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-16 20:34:06 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-16 20:34:06 -0500
commitbfff9d70936bcc797de7d5069c2822478b46833b (patch)
tree36bb102dfcb80fb7263de3ffa4faeea776449533 /renderer.c
parent8a2382793367277d07485d6120b706baa36e26ce (diff)
downloadvolute-bfff9d70936bcc797de7d5069c2822478b46833b.zip
init SDL in render init function
Diffstat (limited to 'renderer.c')
-rw-r--r--renderer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/renderer.c b/renderer.c
index 340de06..13ea671 100644
--- a/renderer.c
+++ b/renderer.c
@@ -20,6 +20,7 @@ static SDL_Window *window;
void r_init(void) {
/* init SDL window */
+ SDL_Init(SDL_INIT_EVERYTHING);
window = SDL_CreateWindow(
NULL, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
width, height, SDL_WINDOW_OPENGL);