mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-07 01:34:07 +00:00
fixed slightly wrong placement when stereo is off
This commit is contained in:
parent
b3def8bdfc
commit
182d101903
@ -164,6 +164,7 @@ void coords_to_poly() {
|
|||||||
polyi = size(glcoords);
|
polyi = size(glcoords);
|
||||||
for(int i=0; i<polyi; i++) {
|
for(int i=0; i<polyi; i++) {
|
||||||
// printf("%lf %lf\n", double(glcoords[i][0]), double(glcoords[i][1]));
|
// printf("%lf %lf\n", double(glcoords[i][0]), double(glcoords[i][1]));
|
||||||
|
if(!stereo::active()) glcoords[i][2] = 0;
|
||||||
|
|
||||||
polyx[i] = vid.xcenter + glcoords[i][0] - glcoords[i][2];
|
polyx[i] = vid.xcenter + glcoords[i][0] - glcoords[i][2];
|
||||||
polyxr[i] = vid.xcenter + glcoords[i][0] + glcoords[i][2];
|
polyxr[i] = vid.xcenter + glcoords[i][0] + glcoords[i][2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user