Skip to content

Commit

Permalink
Merge pull request #849 from sh-dave/fix-g4ong5-kinc_g4_set_matrix4
Browse files Browse the repository at this point in the history
prevent crash in kinc_g4_set_matrix4()
  • Loading branch information
RobDangerous authored Jan 31, 2024
2 parents 83af1a7 + 95a4214 commit 47372b3
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 47372b3

Please sign in to comment.