conworlds
diff src/game.cc @ 8:90abf4b93cc9
fixed line endings
fixed viewport when returning to original framebuffer
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 22 Aug 2014 17:24:43 +0300 |
parents | bd8202d6d28d |
children | c2eecf764daa |
line diff
1.1 --- a/src/game.cc Fri Aug 22 16:55:16 2014 +0300 1.2 +++ b/src/game.cc Fri Aug 22 17:24:43 2014 +0300 1.3 @@ -102,6 +102,8 @@ 1.4 vr_end(); 1.5 1.6 glBindFramebuffer(GL_FRAMEBUFFER, 0); 1.7 + glViewport(0, 0, fb_width, fb_height); 1.8 + 1.9 vr_output_texture(rtarg->get_texture_id(), 0, 0, (float)rtwidth / (float)rtarg->get_width(), 1.10 (float)rtheight / (float)rtarg->get_height()); 1.11 }