Skip to content

Commit

Permalink
resource: fix missing return value check
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartolini committed Dec 21, 2023
1 parent e44e790 commit f512f54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
0.50.0 --- DD MMM YYYY
----------------------

**Data Compiler**

* Fixed existence/redefinition checks for samplers.

**Tools**

* Added an option to use the debug keystore when deploying APKs for Android.
Expand Down
5 changes: 4 additions & 1 deletion src/resource/shader_resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ namespace shader_resource_internal
JsonObject shader(ta);
sjson::parse_object(shader, cur->second);

s32 err = 0;
BgfxShader bgfxshader(default_allocator());
if (json_object::has(shader, "includes"))
sjson::parse_string(bgfxshader._includes, shader["includes"]);
Expand All @@ -981,7 +982,9 @@ namespace shader_resource_internal
if (json_object::has(shader, "fs_input_output"))
sjson::parse_verbatim(bgfxshader._fs_input_output, shader["fs_input_output"]);
if (json_object::has(shader, "samplers"))
parse_bgfx_samplers(bgfxshader, shader["samplers"]);
err = parse_bgfx_samplers(bgfxshader, shader["samplers"]);

DATA_COMPILER_ENSURE(err == 0, _opts);

DynamicString key(ta);
key = cur->first;
Expand Down

0 comments on commit f512f54

Please sign in to comment.