aboutsummaryrefslogtreecommitdiffstats
path: root/support/magicleap/Servo2D/code
diff options
context:
space:
mode:
Diffstat (limited to 'support/magicleap/Servo2D/code')
-rw-r--r--support/magicleap/Servo2D/code/src/Servo2D.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/support/magicleap/Servo2D/code/src/Servo2D.cpp b/support/magicleap/Servo2D/code/src/Servo2D.cpp
index 8704478e210..9b830ac6ca0 100644
--- a/support/magicleap/Servo2D/code/src/Servo2D.cpp
+++ b/support/magicleap/Servo2D/code/src/Servo2D.cpp
@@ -116,8 +116,6 @@ int Servo2D::init() {
EGLContext ctx = plane_->getEGLContext();
EGLSurface surf = plane_->getEGLSurface();
EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
- eglMakeCurrent(dpy, surf, surf, ctx);
- glViewport(0, 0, VIEWPORT_W, VIEWPORT_H);
// Hook into servo
servo_ = init_servo(ctx, surf, dpy, logger, "https://servo.org/", VIEWPORT_H, VIEWPORT_W, HIDPI);
@@ -127,9 +125,6 @@ int Servo2D::init() {
return 1;
}
- // Flush GL
- glFlush();
- eglSwapBuffers(dpy, surf);
return 0;
}
@@ -176,20 +171,9 @@ void Servo2D::instanceInitialScenes() {
}
bool Servo2D::updateLoop(float fDelta) {
- // Get the EGL context, surface and display.
- EGLContext ctx = plane_->getEGLContext();
- EGLSurface surf = plane_->getEGLSurface();
- EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
- eglMakeCurrent(dpy, surf, surf, ctx);
- glViewport(0, 0, VIEWPORT_W, VIEWPORT_H);
-
// Hook into servo
heartbeat_servo(servo_);
- // Flush GL
- glFlush();
- eglSwapBuffers(dpy, surf);
-
// Return true for your app to continue running, false to terminate the app.
return true;
}