SWDEV-245531 - GLInterop: linux - Buffer Interop
adding back two missed changes back to cmakelists and amdhip.def
Change-Id: Ibe0ed655d3590f0add13c20b160078ae005feaaf
[ROCm/clr commit: b075718a0f]
This commit is contained in:
zatwierdzone przez
Aakash Sudhanwa
rodzic
1843c58544
commit
ab21349df9
@@ -176,11 +176,15 @@ void setupGLInteropOnce() {
|
||||
HDC dc;
|
||||
HGLRC glrc;
|
||||
|
||||
dc = wglGetCurrentDC();
|
||||
glrc = wglGetCurrentContext();
|
||||
|
||||
/*
|
||||
if (!getDeviceGLContext(dc, glrc)) {
|
||||
LogError(" Context setup failed \n");
|
||||
return;
|
||||
}
|
||||
|
||||
*/
|
||||
cl_context_properties properties[] = {CL_CONTEXT_PLATFORM,
|
||||
(cl_context_properties)AMD_PLATFORM,
|
||||
CL_GL_CONTEXT_KHR,
|
||||
@@ -197,11 +201,14 @@ void setupGLInteropOnce() {
|
||||
hGL->context = nullptr;
|
||||
hGL->window = 0;
|
||||
hGL->cmap = 0;
|
||||
|
||||
hGL->context = glXGetCurrentContext();
|
||||
hGL->display = glXGetCurrentDisplay();
|
||||
/*
|
||||
if (!getDeviceGLContext(hGL)) {
|
||||
LogError(" Context setup failed \n");
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
cl_context_properties properties[] = {CL_CONTEXT_PLATFORM,
|
||||
(cl_context_properties)AMD_PLATFORM,
|
||||
|
||||
Reference in New Issue
Block a user