summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2023-02-06 17:17:33 +0100
committerAndre Weissflog <floooh@gmail.com>2023-02-06 17:17:33 +0100
commit4d60260b395e6616d2fa9ea132f4cf512f497976 (patch)
treee8be9ae3d9965ea23b5497108ec454dd3d914c83
parent0b1f13981d00147fd63a7ec86cfd6e4903de8fe0 (diff)
sokol_gfx.h: fix unreachable code error in msvc
-rw-r--r--sokol_gfx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 6c4c0da2..1a5a9124 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -14599,8 +14599,9 @@ _SOKOL_PRIVATE bool _sg_validate_end(void) {
if (_sg.validate_error != SG_LOGITEM_OK) {
#if !defined(SOKOL_VALIDATE_NON_FATAL)
abort();
+ #else
+ return false;
#endif
- return false;
}
else {
return true;