diff --git a/libs/gfx/include/psemek/gfx/attribs.hpp b/libs/gfx/include/psemek/gfx/attribs.hpp index 148f12d2..84d9db81 100644 --- a/libs/gfx/include/psemek/gfx/attribs.hpp +++ b/libs/gfx/include/psemek/gfx/attribs.hpp @@ -321,7 +321,7 @@ namespace psemek::gfx } else if constexpr (is_padding::value) { - make_attribs_description_impl::make_impl(result, index, offset + Attr1::size, stride); + make_attribs_description_impl::make_impl(result, index, Instance ? offset : offset + Attr1::size, stride); } else if constexpr (is_instanced::value == Instance) {