Added rlgl standalone sample

This commit is contained in:
raysan5
2016-07-16 19:25:15 +02:00
parent a05150392a
commit bfb5ffedda
3 changed files with 404 additions and 2 deletions

View File

@@ -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();
}