Compare commits

...

2 commits

Author SHA1 Message Date
0f9ae51ca0 chore: updated ceramic submodule 2025-10-26 21:19:06 +01:00
37a412ea40 chore(style): clarified InitSDL error conditions 2025-10-26 21:17:43 +01:00
2 changed files with 3 additions and 3 deletions

View file

@ -67,11 +67,11 @@ void InitSDL() {
SDL_LogError(SDL_LOG_CATEGORY_ERROR, "SDL_Init failed: %s", SDL_GetError());
exit(1);
}
if ((window = SDL_CreateWindow("Window", screenWidth, screenHeight, sdlInitFlags)) == nullptr) {
if (!(window = SDL_CreateWindow("Window", screenWidth, screenHeight, sdlInitFlags))) {
SDL_LogError(SDL_LOG_CATEGORY_ERROR, "SDL_CreateWindow failed: %s", SDL_GetError());
exit(2);
}
if ((renderer = SDL_CreateRenderer(window, NULL)) == nullptr) {
if (!(renderer = SDL_CreateRenderer(window, NULL))) {
SDL_LogError(SDL_LOG_CATEGORY_ERROR, "SDL_CreateRenderer failed: %s", SDL_GetError());
exit(3);
}

2
vendor/ceramic vendored

@ -1 +1 @@
Subproject commit 72604542111253a9e2dd20992baf6dba81de9773
Subproject commit c372a4db3a28dd292793756f0ca36e9460d24b33