mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-23 14:30:08 +00:00
draw textured spheres correctly
This commit is contained in:
parent
228f677e00
commit
7b4061829e
@ -607,6 +607,15 @@ void drawpolyline(polytodraw& p) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
glLineWidth(linewidthat(tC0(pp.V), pp.minwidth));
|
glLineWidth(linewidthat(tC0(pp.V), pp.minwidth));
|
||||||
|
if(pp.tinf && pp.offset) {
|
||||||
|
vector<glvertex> tv;
|
||||||
|
for(int i=0; i<pp.cnt; i++)
|
||||||
|
tv.push_back(pp.tinf->tvertices[pp.offset+i]);
|
||||||
|
swap(pp.tinf->tvertices, tv);
|
||||||
|
gldraw(3, Id, glcoords, 0, size(glcoords), p.col, pp.outline, poly_flags, pp.tinf);
|
||||||
|
swap(pp.tinf->tvertices, tv);
|
||||||
|
}
|
||||||
|
else
|
||||||
gldraw(3, Id, glcoords, 0, size(glcoords), p.col, pp.outline, poly_flags, pp.tinf);
|
gldraw(3, Id, glcoords, 0, size(glcoords), p.col, pp.outline, poly_flags, pp.tinf);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user