1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 07:20:25 +00:00

fixed 3D perspective rendering without CAP_VR

This commit is contained in:
Zeno Rogue 2020-12-06 20:48:03 +01:00
parent 479b5f5db0
commit 6eaae5c206

View File

@ -538,7 +538,7 @@ void display_data::set_projection(int ed, ld shift) {
glhr::projection_multiply(glhr::tmtogl_transpose(vrhr::hmd_mvp)); glhr::projection_multiply(glhr::tmtogl_transpose(vrhr::hmd_mvp));
} }
#else #else
if(1) {} if(0) {}
#endif #endif
else { else {
glhr::projection_multiply(glhr::frustum(current_display->tanfov, current_display->tanfov * cd->ysize / cd->xsize)); glhr::projection_multiply(glhr::frustum(current_display->tanfov, current_display->tanfov * cd->ysize / cd->xsize));