KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.34k stars 648 forks source link

Fix for crashes caused by hpp interface differences #836

Closed gary-sweet closed 1 year ago

gary-sweet commented 1 year ago

Description

There is a difference in interfaces between DebugUtils and HPPDebugUtils introduced by https://github.com/KhronosGroup/Vulkan-Samples/pull/788

DebugUtils accepts the color argument as glm::vec4 const color whereas HPPDebugUtils takes a reference instead. This ends up causing a color of <0,0,0,0> being reinterpreted as a reference, which doesn't end well.

This change makes the HPPDebugUtils interface match DebugUtils again.

Fixes #817

General Checklist:

Please ensure the following points are checked:

marty-johnson59 commented 1 year ago

Merging - 3 approvals