summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 284def2)
raw | patch | inline | side by side (parent: 284def2)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 16 Feb 2023 00:53:58 +0000 (03:53 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 09:14:01 +0000 (12:14 +0300) |
src/nogl/noGLES1.inc | patch | blob | history |
diff --git a/src/nogl/noGLES1.inc b/src/nogl/noGLES1.inc
index 15765bf36253d22e81842b4e8c830ca7beb34049..6142e2e4ee6c148f254d365c166ed62be90f986e 100644 (file)
--- a/src/nogl/noGLES1.inc
+++ b/src/nogl/noGLES1.inc
begin
i := Length(x);
vpx := Length(v);
- if (cmds.mode = GL_QUADS) and (i div vpx mod 4 = 3) then
+ if (cmds.mode = GL_QUADS) and (i div vpx mod 6 = 3) then
begin
- for j := 0 to vpx - 1 do
- AddFloatRaw(x, x[i - 3*vpx + j]);
- for j := 0 to vpx - 1 do
- AddFloatRaw(x, x[i - 1*vpx + j]);
+ for j := 0 to vpx - 1 do AddFloatRaw(x, x[i - 1*vpx + j]);
+ for j := 0 to vpx - 1 do AddFloatRaw(x, v[j]);
+ for j := 0 to vpx - 1 do AddFloatRaw(x, x[i - 3*vpx + j]);
+ end
+ else
+ begin
+ for j := 0 to vpx - 1 do AddFloatRaw(x, v[j]);
end;
- for j := 0 to vpx - 1 do
- AddFloatRaw(x, v[j]);
end;
(* ---------- end internals ---------- *)