summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-11-17 12:55:30 +0100
committerraysan5 <[email protected]>2016-11-17 12:55:30 +0100
commitbee283b12b348b054bde2eae1a449c363ac26fd7 (patch)
tree868bb03923b1b07798104b935ca58a42b4764c92 /src/core.c
parente23e73d9b28833c61044dd494794b4aee047bf96 (diff)
downloadraylib-bee283b12b348b054bde2eae1a449c363ac26fd7.tar.gz
raylib-bee283b12b348b054bde2eae1a449c363ac26fd7.zip
Some tweaks around
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 991dd4a0..4807b7f6 100644
--- a/src/core.c
+++ b/src/core.c
@@ -668,7 +668,7 @@ void Begin3dMode(Camera camera)
{
rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2)
- if (IsVrDeviceReady()) BeginVrDrawing();
+ if (IsVrDeviceReady() || IsVrSimulator()) BeginVrDrawing();
rlMatrixMode(RL_PROJECTION); // Switch to projection matrix
@@ -698,7 +698,7 @@ void End3dMode(void)
{
rlglDraw(); // Process internal buffers (update + draw)
- if (IsVrDeviceReady()) EndVrDrawing();
+ if (IsVrDeviceReady() || IsVrSimulator()) EndVrDrawing();
rlMatrixMode(RL_PROJECTION); // Switch to projection matrix
rlPopMatrix(); // Restore previous matrix (PROJECTION) from matrix stack