fix: Segmentation Fault Fixed
This commit is contained in:
parent
47fb0dcc72
commit
dd504b053b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue