diff options
| author | raysan5 <raysan5@gmail.com> | 2016-07-04 18:35:50 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-07-04 18:35:50 +0200 |
| commit | 2ff2096b36d80078cbda5e61ff77d7fedeeeaeb5 (patch) | |
| tree | 808159aa95df9b2be5509d83791aa6cad4ddf6b8 /src | |
| parent | 3fb1c446ea5cf7fe813b0809894e938232ab1738 (diff) | |
| download | raylib-2ff2096b36d80078cbda5e61ff77d7fedeeeaeb5.tar.gz raylib-2ff2096b36d80078cbda5e61ff77d7fedeeeaeb5.zip | |
Moved Oculus enable drawing to user side...
Still thinking about the best way to manage this...
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -521,7 +521,7 @@ void BeginDrawing(void) updateTime = currentTime - previousTime; previousTime = currentTime; - if (IsOculusReady()) BeginOculusDrawing(); + //if (IsOculusReady()) BeginOculusDrawing(); rlClearScreenBuffers(); // Clear current framebuffers rlLoadIdentity(); // Reset current matrix (MODELVIEW) @@ -536,7 +536,7 @@ void EndDrawing(void) { rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2) - if (IsOculusReady()) EndOculusDrawing(); + //if (IsOculusReady()) EndOculusDrawing(); SwapBuffers(); // Copy back buffer to front buffer PollInputEvents(); // Poll user events @@ -2675,7 +2675,7 @@ static void *MouseThread(void *arg) int mouseRelX = 0; int mouseRelY = 0; - while (1) + while (!windowShouldClose) { if (read(mouseStream, &mouse, sizeof(MouseEvent)) == (int)sizeof(MouseEvent)) { |
