Skip to content

Commit

Permalink
C++ interface: minor narrowing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs committed May 5, 2020
1 parent d129211 commit 6d4932a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/deko3d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ namespace dk
struct SwapchainMaker : public ::DkSwapchainMaker
{
SwapchainMaker(DkDevice device, void* nativeWindow, DkImage const* const pImages[], uint32_t numImages) noexcept : DkSwapchainMaker{} { ::dkSwapchainMakerDefaults(this, device, nativeWindow, pImages, numImages); }
template <size_t N> SwapchainMaker(DkDevice device, void* nativeWindow, std::array<DkImage const*, N> const& images) noexcept : SwapchainMaker{device, nativeWindow, images.data(), images.size()} { }
template <size_t N> SwapchainMaker(DkDevice device, void* nativeWindow, std::array<DkImage const*, N> const& images) noexcept : SwapchainMaker{device, nativeWindow, images.data(), (uint32_t)images.size()} { }
#ifdef DK_HPP_SUPPORT_VECTOR
SwapchainMaker(DkDevice device, void* nativeWindow, std::vector<DkImage const*> const& images) noexcept : SwapchainMaker{device, nativeWindow, images.data(), images.size()} { }
#endif
Expand Down

0 comments on commit 6d4932a

Please sign in to comment.