diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-21 13:49:23 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-21 15:23:37 +0100 |
commit | 0ca11f9bee1cd918acf6ce8247a495442009fec9 (patch) | |
tree | d1e791cf44770660eca6783bc3e9c0a2470b7efb /src/GalOgl.cpp | |
parent | Added normals to faces (diff) | |
download | AltCraft-0ca11f9bee1cd918acf6ce8247a495442009fec9.tar AltCraft-0ca11f9bee1cd918acf6ce8247a495442009fec9.tar.gz AltCraft-0ca11f9bee1cd918acf6ce8247a495442009fec9.tar.bz2 AltCraft-0ca11f9bee1cd918acf6ce8247a495442009fec9.tar.lz AltCraft-0ca11f9bee1cd918acf6ce8247a495442009fec9.tar.xz AltCraft-0ca11f9bee1cd918acf6ce8247a495442009fec9.tar.zst AltCraft-0ca11f9bee1cd918acf6ce8247a495442009fec9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/GalOgl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GalOgl.cpp b/src/GalOgl.cpp index c250539..75369ab 100644 --- a/src/GalOgl.cpp +++ b/src/GalOgl.cpp @@ -1256,6 +1256,11 @@ struct ImplOgl : public Impl { size_t attribSize = GalTypeGetSize(type); for (size_t i = 0; i < count; i++) { + if (location < 0) { + vertexSize += attribSize; + continue; + } + pipeline->vertexBindCmds.push_back({ bufferId, static_cast<size_t>(location + i), |