Esempio n. 1
0
static void
stereo_cleanup_dev(struct gbm_dev *dev)
{
        restore_saved_crtc(dev);

        /* free allocated memory */
        free(dev);
}
Esempio n. 2
0
static void
stereo_cleanup_context(struct gbm_context *context)
{
        restore_saved_crtc(context->dev);
        free_current_bo(context);
        eglMakeCurrent(context->edpy,
                       EGL_NO_SURFACE,
                       EGL_NO_SURFACE,
                       EGL_NO_CONTEXT);
        eglDestroyContext(context->edpy, context->egl_context);
        eglDestroySurface(context->edpy, context->egl_surface);
        gbm_surface_destroy(context->gbm_surface);
        eglTerminate(context->edpy);
        gbm_device_destroy(context->gbm);
        free(context);
}
Esempio n. 3
0
mgm::RealKMSOutput::~RealKMSOutput()
{
    restore_saved_crtc();
}