summaryrefslogtreecommitdiffstats
path: root/src/GalOgl.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-11-21 13:49:23 +0100
committerLaG1924 <lag1924@gmail.com>2021-11-21 15:23:37 +0100
commit0ca11f9bee1cd918acf6ce8247a495442009fec9 (patch)
treed1e791cf44770660eca6783bc3e9c0a2470b7efb /src/GalOgl.cpp
parentAdded normals to faces (diff)
downloadAltCraft-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.cpp5
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),