fix: Segmentation Fault Fixed

This commit is contained in:
Syntriax 2023-07-05 15:57:46 +03:00
parent 47fb0dcc72
commit dd504b053b
1 changed files with 1 additions and 1 deletions

View File

@ -54,8 +54,8 @@ int main(int argc, char *argv[])
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
width, height,
SDL_WindowFlags::SDL_WINDOW_OPENGL);
renderer = SDL_CreateRenderer(window, -1, SDL_RendererFlags::SDL_RENDERER_ACCELERATED);
surface = SDL_GetWindowSurface(window);
renderer = SDL_CreateRenderer(window, -1, SDL_RendererFlags::SDL_RENDERER_ACCELERATED);
life.SetDimensions(width, height);
life.SetDisplay((int *)surface->pixels, surface->format);