aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/GLES_COMPUTE/GCScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/GLES_COMPUTE/GCScheduler.cpp')
-rw-r--r--src/runtime/GLES_COMPUTE/GCScheduler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/GLES_COMPUTE/GCScheduler.cpp b/src/runtime/GLES_COMPUTE/GCScheduler.cpp
index 0824af3ed4..a45d7931be 100644
--- a/src/runtime/GLES_COMPUTE/GCScheduler.cpp
+++ b/src/runtime/GLES_COMPUTE/GCScheduler.cpp
@@ -52,6 +52,14 @@ void GCScheduler::default_init()
init(_display, _context);
}
+void GCScheduler::default_init_with_context(EGLDisplay display, EGLContext ctx)
+{
+ _context = ctx;
+ _display = display;
+
+ _target = get_target_from_device();
+}
+
void GCScheduler::init(EGLDisplay dpy, EGLContext ctx)
{
_target = get_target_from_device();