mirror of https://github.com/encounter/SDL.git
Fix compilation. It needs to be casted to 'int' type
This commit is contained in:
parent
ce5da5d579
commit
4192d1a1c7
|
@ -53,7 +53,7 @@ void InitCreateRenderer(void *arg)
|
||||||
|
|
||||||
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
|
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
|
||||||
SDLTest_AssertPass("SDL_CreateRenderer()");
|
SDLTest_AssertPass("SDL_CreateRenderer()");
|
||||||
SDLTest_AssertCheck(renderer, "Check SDL_CreateRenderer result");
|
SDLTest_AssertCheck(renderer != 0, "Check SDL_CreateRenderer result");
|
||||||
if (renderer == NULL) {
|
if (renderer == NULL) {
|
||||||
SDL_DestroyWindow(window);
|
SDL_DestroyWindow(window);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue