fixup to neon disabling textures

This commit is contained in:
Zeno Rogue committed 2020-04-06 11:24:57 +02:00
1 parent 5c414af31b
commit 4e30c79c37
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -2200,8 +2200,6 @@ EX dqi_poly& queuepolyat(const transmatrix& V, const hpcshape& h, color_t col, P
part(col,1) = b; */
part(col,2) = part(col,3) = (part(col,2) * 2 + part(col,3) + 1)/3;
}
if(neon_mode != eNeon::none && (h.flags & POLY_TRIANGLES))
ptd.tinf = nullptr;
if(neon_mode == eNeon::none) {
ptd.color = (darkened(col >> 8) << 8) + (col & 0xFF);
ptd.outline = poly_outline;
@@ -2242,6 +2240,8 @@ EX dqi_poly& queuepolyat(const transmatrix& V, const hpcshape& h, color_t col, P
ptd.linewidth = vid.linewidth;
ptd.flags = h.flags;
ptd.tinf = h.tinf;
if(neon_mode != eNeon::none && (h.flags & POLY_TRIANGLES))
ptd.tinf = nullptr;
ptd.offset_texture = h.texture_offset;
ptd.intester = h.intester;
return ptd;