mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-06 22:05:06 +00:00
fixed an OpenGL error caused by negative linewidth
This commit is contained in:
parent
9b721d25d6
commit
63154dbcbf
@ -558,7 +558,7 @@ void dqi_poly::gldraw() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
ld scale_at(const transmatrix& T) {
|
ld scale_at(const transmatrix& T) {
|
||||||
if(DIM == 3 && pmodel == mdPerspective) return 1 / (tC0(T))[2];
|
if(DIM == 3 && pmodel == mdPerspective) return 1 / abs((tC0(T))[2]);
|
||||||
using namespace hyperpoint_vec;
|
using namespace hyperpoint_vec;
|
||||||
hyperpoint h1, h2, h3;
|
hyperpoint h1, h2, h3;
|
||||||
applymodel(tC0(T), h1);
|
applymodel(tC0(T), h1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user