mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-06 01:04:07 +00:00
fixed spherical display in OpenGL
This commit is contained in:
parent
b80ac00a55
commit
87cbdc6c57
@ -318,6 +318,15 @@ void gldraw(int useV, const transmatrix& V, int ps, int pq, int col, int outline
|
|||||||
if(useV == 1) {
|
if(useV == 1) {
|
||||||
glapplymatrix(V);
|
glapplymatrix(V);
|
||||||
}
|
}
|
||||||
|
else if(useV == 3) {
|
||||||
|
GLfloat mat[16] = {
|
||||||
|
1, 0, 0, 0,
|
||||||
|
0, 1, 0, 0,
|
||||||
|
0, 0, 0, 0,
|
||||||
|
0, 0, stereo::scrdist, 1
|
||||||
|
};
|
||||||
|
glhr::set_modelview(glhr::as_glmatrix(mat));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
glhr::set_modelview(glhr::id());
|
glhr::set_modelview(glhr::id());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user