Fix: Windows build error from missing template argument deduction
This commit is contained in:
parent
2f8499415b
commit
17b875fccf
|
@ -39,7 +39,8 @@ void vertbuf_data_extract_direct(const GSpan attribute, GPUVertBuf &vbo)
|
||||||
using Converter = AttributeConverter<T>;
|
using Converter = AttributeConverter<T>;
|
||||||
using VBOType = typename Converter::VBOType;
|
using VBOType = typename Converter::VBOType;
|
||||||
const Span<T> src = attribute.typed<T>();
|
const Span<T> src = attribute.typed<T>();
|
||||||
MutableSpan data(static_cast<VBOType *>(GPU_vertbuf_get_data(&vbo)), attribute.size());
|
MutableSpan<VBOType> data(static_cast<VBOType *>(GPU_vertbuf_get_data(&vbo)),
|
||||||
|
attribute.size());
|
||||||
if constexpr (std::is_same_v<T, VBOType>) {
|
if constexpr (std::is_same_v<T, VBOType>) {
|
||||||
array_utils::copy(src, data);
|
array_utils::copy(src, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue