1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sokol: do not crash if an image cannot be rendered

This commit is contained in:
Alexander Medvednikov 2022-07-19 13:21:30 +03:00
parent e4674cb8e1
commit 1aeca113d3
2 changed files with 18 additions and 16 deletions

View File

@ -174,7 +174,7 @@ v self
```bash
$ v
V 0.2.x
V 0.3.x
Use Ctrl-C or `exit` to exit
>>> println('hello world')

View File

@ -14015,10 +14015,12 @@ _SOKOL_PRIVATE void _sg_validate(bool cond, _sg_validate_error_t err) {
_SOKOL_PRIVATE bool _sg_validate_end(void) {
if (_sg.validate_error != _SG_VALIDATE_SUCCESS) {
// __v_ start
#if !defined(SOKOL_VALIDATE_NON_FATAL)
SOKOL_LOG("^^^^ SOKOL-GFX VALIDATION FAILED, TERMINATING ^^^^");
SOKOL_ASSERT(false);
// SOKOL_ASSERT(false);
#endif
// __v_ end
return false;
}
else {