gpu: remove egl dependency
This commit is contained in:
@@ -35,7 +35,6 @@ import java.util.Objects;
|
|||||||
import javax.inject.Singleton;
|
import javax.inject.Singleton;
|
||||||
import jogamp.opengl.GLContextImpl;
|
import jogamp.opengl.GLContextImpl;
|
||||||
import jogamp.opengl.GLDrawableImpl;
|
import jogamp.opengl.GLDrawableImpl;
|
||||||
import jogamp.opengl.egl.EGLContext;
|
|
||||||
import jogamp.opengl.macosx.cgl.CGL;
|
import jogamp.opengl.macosx.cgl.CGL;
|
||||||
import jogamp.opengl.windows.wgl.WindowsWGLContext;
|
import jogamp.opengl.windows.wgl.WindowsWGLContext;
|
||||||
import jogamp.opengl.x11.glx.X11GLXContext;
|
import jogamp.opengl.x11.glx.X11GLXContext;
|
||||||
@@ -306,12 +305,6 @@ class OpenCLManager
|
|||||||
contextProps.addProperty(CL_GL_CONTEXT_KHR, glContextHandle);
|
contextProps.addProperty(CL_GL_CONTEXT_KHR, glContextHandle);
|
||||||
contextProps.addProperty(CL_WGL_HDC_KHR, surfaceHandle);
|
contextProps.addProperty(CL_WGL_HDC_KHR, surfaceHandle);
|
||||||
}
|
}
|
||||||
else if (glContext instanceof EGLContext)
|
|
||||||
{
|
|
||||||
long displayHandle = nativeSurface.getDisplayHandle();
|
|
||||||
contextProps.addProperty(CL_GL_CONTEXT_KHR, glContextHandle);
|
|
||||||
contextProps.addProperty(CL_EGL_DISPLAY_KHR, displayHandle);
|
|
||||||
}
|
|
||||||
|
|
||||||
log.debug("Creating context with props: {}", contextProps);
|
log.debug("Creating context with props: {}", contextProps);
|
||||||
context = clCreateContext(contextProps, 1, new cl_device_id[]{device}, null, null, null);
|
context = clCreateContext(contextProps, 1, new cl_device_id[]{device}, null, null, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user