Skip to content

Commit

Permalink
fix bug with unsigned integer where it should be signed
Browse files Browse the repository at this point in the history
  • Loading branch information
WinteryFox committed Nov 24, 2023
1 parent ddb7813 commit dd1d141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/vk/VkPipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ namespace Vixen::Vk {
};
}

Builder &setWidth(uint32_t w) {
Builder &setWidth(const uint32_t w) {
config.viewport.width = static_cast<float>(w);
config.scissor.extent.width = w;
return *this;
}

Builder &setHeight(uint32_t h) {
Builder &setHeight(const int32_t h) {
config.viewport.height = static_cast<float>(-h);
config.viewport.y = static_cast<float>(h);
config.scissor.extent.height = h;
Expand Down

0 comments on commit dd1d141

Please sign in to comment.