Added EGL linking and useage for the linux cl_khr_gl_sharing
interaction. This still crashes on my machine but at least its getting closer to working. Fixed some warnings and errors while compiling with clang++
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "CLCaster.h"
|
||||
|
||||
|
||||
CLCaster::CLCaster() {}
|
||||
CLCaster::~CLCaster() {}
|
||||
|
||||
@@ -570,8 +569,10 @@ bool CLCaster::create_shared_context()
|
||||
#ifdef linux
|
||||
|
||||
cl_context_properties context_properties[] = {
|
||||
CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(),
|
||||
CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(),
|
||||
//CL_GL_CONTEXT_KHR, (cl_context_properties)glXGetCurrentContext(),
|
||||
//CL_GLX_DISPLAY_KHR, (cl_context_properties)glXGetCurrentDisplay(),
|
||||
CL_GL_CONTEXT_KHR, (cl_context_properties)eglGetCurrentContext(),
|
||||
CL_EGL_DISPLAY_KHR, (cl_context_properties)eglGetCurrentDisplay(),
|
||||
CL_CONTEXT_PLATFORM, (cl_context_properties)platform_id,
|
||||
0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user