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:
parent
e4674cb8e1
commit
1aeca113d3
@ -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')
|
||||
|
4
thirdparty/sokol/sokol_gfx.h
vendored
4
thirdparty/sokol/sokol_gfx.h
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user