fixed renderer problem

This commit is contained in:
Zeno Rogue 2019-12-06 14:45:35 +01:00
parent 225c43b141
commit 0b385dd7f4
2 changed files with 4 additions and 1 deletions

View File

@ -3681,10 +3681,11 @@ Other:
- subtler default out-of-range color in raycasting
- added fractal landscapes to more lands in SC
- map editor: when using a larger edit range, cursors are drawn on every affected cell
- 'circles' are now drawn on all copies in quotient geometries
- various markers are now drawn on all copies in quotient geometries
- fixed cell selection in some geometries
- the cells in front of you is now shown by default in 3D geometries (in non-shmup)
- product geometries are now drawn in a more robust way
- correctly display/rotate the PC in product geometries
- fixed distance computation in SL2 (racing works again)
- reduced the number of cells generated in 3D racing
- bug fixed: incorrect renderer was used when switching from S2xE to H2xE

View File

@ -303,6 +303,8 @@ void display_data::set_projection(int ed) {
id <<= 6; id |= spherephase;
id <<= 1; if(vid.consider_shader_projection) id |= 1;
id <<= 2; id |= (spherespecial & 3);
if(in_h2xe()) id |= 1;
if(in_s2xe()) id |= 2;
shared_ptr<glhr::GLprogram> selected;
if(matched_programs.count(id)) selected = matched_programs[id];