diff options
| author | raysan5 <[email protected]> | 2016-06-21 13:49:13 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-06-21 13:49:13 +0200 |
| commit | 03d9583b945dcf17d6a93ed97deeb9f9721284b5 (patch) | |
| tree | f073793f53d77a4182b92c3acb54ad0009685d26 /src/core.c | |
| parent | e913de58c73ff82fbcd8f23b8cb1fd1a88664164 (diff) | |
| download | raylib-03d9583b945dcf17d6a93ed97deeb9f9721284b5.tar.gz raylib-03d9583b945dcf17d6a93ed97deeb9f9721284b5.zip | |
Add oculus simulator (in case device is not detected)
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -607,14 +607,15 @@ void Begin3dMode(Camera camera) rlEnableDepthTest(); // Enable DEPTH_TEST for 3D - if (VrEnabled()) BeginOculusDrawing(); + if (IsOculusReady()) BeginOculusDrawing(); } // Ends 3D mode and returns to default 2D orthographic mode void End3dMode(void) { - if (VrEnabled()) EndOculusDrawing(); - else rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2) + if (IsOculusReady()) EndOculusDrawing(); + + rlglDraw(); // Process internal buffers (update + draw) rlMatrixMode(RL_PROJECTION); // Switch to projection matrix rlPopMatrix(); // Restore previous matrix (PROJECTION) from matrix stack |
