conworlds

diff src/game.cc @ 18:e4257df067a1

oh yeah, now the tracking is solid. Wasn't rendering the correct part of the texture before.
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 26 Aug 2014 12:59:15 +0300
parents 9b0db7dbde6e
children 782ff06817fb
line diff
     1.1 --- a/src/game.cc	Sun Aug 24 14:36:00 2014 +0300
     1.2 +++ b/src/game.cc	Tue Aug 26 12:59:15 2014 +0300
     1.3 @@ -147,11 +147,9 @@
     1.4  	if(eye == 0 || !vr_view_matrix(eye < 0 ? 0 : 1, mat)) {
     1.5  		glLoadIdentity();
     1.6  	} else {
     1.7 -		glLoadIdentity();
     1.8 -		//glLoadMatrixf(mat);
     1.9 +		glLoadMatrixf(mat);
    1.10  	}
    1.11  	glMultTransposeMatrixf(view_matrix[0]);
    1.12 -	glMultMatrixf(mat);
    1.13  
    1.14  	draw_scene();
    1.15  }