mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +00:00
missing CAP_VR guard
This commit is contained in:
parent
1a43e1330f
commit
dafa2fd7b3
4
sky.cpp
4
sky.cpp
@ -138,7 +138,11 @@ void compute_skyvertices(const vector<sky_item>& sky) {
|
|||||||
void dqi_sky::draw() {
|
void dqi_sky::draw() {
|
||||||
if(!vid.usingGL || sky.empty()) return;
|
if(!vid.usingGL || sky.empty()) return;
|
||||||
|
|
||||||
|
#if CAP_VR
|
||||||
transmatrix s = (vrhr::rendering() ? vrhr::master_cview : cview()).T * inverse(sky_cview.T);
|
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) {
|
for(int ed = current_display->stereo_active() ? -1 : 0; ed<2; ed+=2) {
|
||||||
if(global_projection && global_projection != ed) continue;
|
if(global_projection && global_projection != ed) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user