#include "yagl_log.h"
#include "yagl_process.h"
#include "yagl_thread.h"
+#include "yagl_gles_driver.h"
YAGL_DEFINE_TLS(struct yagl_egl_offscreen_ts*, egl_offscreen_ts);
YAGL_LOG_FUNC_ENTER(yagl_egl_offscreen_make_current, NULL);
+ if (egl_offscreen_ts->dpy) {
+ egl_offscreen->gles_driver->Flush();
+ }
+
if (draw && read) {
res = egl_offscreen->egl_driver->make_current(egl_offscreen->egl_driver,
egl_offscreen_dpy->native_dpy,
return false;
}
+ egl_offscreen->gles_driver->Flush();
+
res = egl_offscreen->egl_driver->make_current(egl_offscreen->egl_driver,
egl_offscreen_ts->dpy->native_dpy,
EGL_NO_SURFACE,
YAGL_LOG_FUNC_ENTER(yagl_egl_onscreen_make_current, NULL);
+ if (egl_onscreen_ts->dpy) {
+ egl_onscreen->gles_driver->Flush();
+ }
+
if (draw && read) {
res = egl_onscreen->egl_driver->make_current(egl_onscreen->egl_driver,
egl_onscreen_dpy->native_dpy,
return false;
}
+ egl_onscreen->gles_driver->Flush();
+
res = egl_onscreen->egl_driver->make_current(egl_onscreen->egl_driver,
egl_onscreen_ts->dpy->native_dpy,
EGL_NO_SURFACE,