1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed spherical display in OpenGL

This commit is contained in:
Zeno Rogue 2018-02-09 04:30:17 +01:00
parent b80ac00a55
commit 87cbdc6c57

View File

@ -318,6 +318,15 @@ void gldraw(int useV, const transmatrix& V, int ps, int pq, int col, int outline
if(useV == 1) {
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
glhr::set_modelview(glhr::id());