1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-22 05:03:19 +00:00

missing CAP_VR guard

This commit is contained in:
Zeno Rogue 2021-03-09 16:19:17 +01:00
parent 1a43e1330f
commit dafa2fd7b3

View File

@ -138,7 +138,11 @@ void compute_skyvertices(const vector<sky_item>& sky) {
void dqi_sky::draw() {
if(!vid.usingGL || sky.empty()) return;
#if CAP_VR
transmatrix s = (vrhr::rendering() ? vrhr::master_cview : cview()).T * inverse(sky_cview.T);
#else
transmatrix s = cview().T * inverse(sky_cview.T);
#endif
for(int ed = current_display->stereo_active() ? -1 : 0; ed<2; ed+=2) {
if(global_projection && global_projection != ed) continue;