resource/shader_program: fix segfault when file fails to open

This commit is contained in:
Andrei Alexeyev 2022-05-25 04:46:58 +03:00
parent b8a2188bef
commit 1358f35856
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -39,6 +39,7 @@ static void load_shader_program_stage1(ResourceLoadState *st) {
if(UNLIKELY(!rw)) {
log_error("VFS error: %s", vfs_get_error());
res_load_failed(st);
return;
}
if(!parse_keyvalue_stream_with_spec(rw, (KVSpec[]){