From 9fe6ca75065157f0ea52619f0c01e7ce8a70443a Mon Sep 17 00:00:00 2001 From: Aloshi Date: Wed, 17 Jul 2013 00:50:38 -0500 Subject: [PATCH] Fix projection matrix on the Raspberry Pi. --- src/Renderer_init_rpi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Renderer_init_rpi.cpp b/src/Renderer_init_rpi.cpp index 01965d0e7..97462a44b 100644 --- a/src/Renderer_init_rpi.cpp +++ b/src/Renderer_init_rpi.cpp @@ -216,7 +216,9 @@ namespace Renderer return false; glViewport(0, 0, display_width, display_height); + glMatrixMode(GL_PROJECTION); glOrthof(0, display_width, display_height, 0, -1.0, 1.0); + glMatrixMode(GL_MODELVIEW); glClearColor(1.0f, 1.0f, 1.0f, 1.0f); onInit();