Commit c9fbf316 authored by Philip Trettner's avatar Philip Trettner
Browse files

rewrote setUniform a bit to solve vs19 problem

parent 9c1af318
lodepng @ 116f5b2e
Subproject commit 116f5b2ed7c4a9c6779ae291b79770727cbb11ad
stb @ e6afb9cb
Subproject commit e6afb9cbae4064da8c3e69af3ff5c4629579c1d2
......@@ -12,9 +12,6 @@ namespace glow
template <class T>
struct array_view;
template <class Range>
auto make_array_view(Range&& r);
namespace detail
template <class Range, class T, class = void>
......@@ -79,8 +79,8 @@ public: // gl functions with use
else if constexpr (detail::can_make_array_view<T>)
auto view = glow::make_array_view(value);
using E = std::remove_const_t<typename decltype(view)::element_type>;
using E = std::decay_t<decltype([0])>;
auto view = array_view<E const>(value);
uniform<E[]>(name) = view;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment