I'd like to create a cross-platform program with CL-GL-Interoperability and SDL.
To create a shared context I need to give the display within the context properties to clCreateContext. My problem is, that
is not cross-platform. Is there a SDL-equivalent?Code :glXGetCurrentDisplay
I thougt that the return value of SDL_CreateWindow is my parameter but it is not the same as glXGetCurrentDisplay.
However, SDL_GL_CreateContext is the same as glXGetCurrentContext().
Someone has ideas?