aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-07-16 19:25:15 +0200
committerraysan5 <raysan5@gmail.com>2016-07-16 19:25:15 +0200
commitbfb5ffedda8ba9a9be41c6210e72cd5c98e1c702 (patch)
treea6458c9cce747a36eaa2935b2517c9b33c2a5243 /src/rlgl.c
parenta05150392a14ded407ffbf8c735dd4f92354fcb8 (diff)
downloadraylib-bfb5ffedda8ba9a9be41c6210e72cd5c98e1c702.tar.gz
raylib-bfb5ffedda8ba9a9be41c6210e72cd5c98e1c702.zip
Added rlgl standalone sample
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index adccb0c7..ae016be9 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -2683,8 +2683,8 @@ void ToggleVrMode(void)
if (!vrEnabled)
{
// Reset viewport and default projection-modelview matrices
- rlViewport(0, 0, GetScreenWidth(), GetScreenHeight());
- projection = MatrixOrtho(0, GetScreenWidth(), GetScreenHeight(), 0, 0.0f, 1.0f);
+ rlViewport(0, 0, screenWidth, screenHeight);
+ projection = MatrixOrtho(0, screenWidth, screenHeight, 0, 0.0f, 1.0f);
MatrixTranspose(&projection);
modelview = MatrixIdentity();
}