]> git.lizzy.rs Git - nothing.git/commitdiff
Provide more info on failed blending mode
authorrexim <reximkut@gmail.com>
Sun, 29 Dec 2019 19:57:37 +0000 (02:57 +0700)
committerrexim <reximkut@gmail.com>
Sun, 29 Dec 2019 19:57:37 +0000 (02:57 +0700)
src/game.c

index f9bba030609eb8548f6effee86b79fedfbd7d27b..2dd84e4c46cf364a7269cff4c04a57b7cb945400 100644 (file)
@@ -105,7 +105,9 @@ Game *create_game(const char *level_folder,
                     SDL_BLENDFACTOR_ONE,
                     SDL_BLENDFACTOR_ZERO,
                     SDL_BLENDOPERATION_ADD)) < 0) {
-            log_warn("SDL error: %s\n", SDL_GetError());
+            log_warn("SDL error while setting blending mode for `%s': %s\n",
+                     cursor_style_tex_files[style],
+                     SDL_GetError());
         }
     }