Skip to content

Commit

Permalink
prevent crash in kinc_g4_set_matrix4()
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-dave committed Jan 31, 2024
1 parent 2a78a5c commit 95a4214
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ kinc_g5_constant_location_t kinc_g5_pipeline_get_constant_location(kinc_g5_pipel
kinc_g5_constant_location_t location;
location.impl.vertexOffset = -1;
location.impl.fragmentOffset = -1;
location.impl.computeOffset = -1;
if (has_number(pipeline->impl.vertexOffsets, name)) {
location.impl.vertexOffset = find_number(pipeline->impl.vertexOffsets, name);
}
Expand Down

0 comments on commit 95a4214

Please sign in to comment.