1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed slightly wrong placement when stereo is off

This commit is contained in:
Zeno Rogue 2018-02-26 13:18:20 +01:00
parent b3def8bdfc
commit 182d101903

View File

@ -164,6 +164,7 @@ void coords_to_poly() {
polyi = size(glcoords);
for(int i=0; i<polyi; i++) {
// 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];
polyxr[i] = vid.xcenter + glcoords[i][0] + glcoords[i][2];