SWDEV-318704 fix for GL-interop second render

Change-Id: I27403c0444350a64a11b1beee071b0f1dbe8e3f7


[ROCm/clr commit: 96ae15fe5d]
This commit is contained in:
Payam
2022-01-23 15:15:20 -05:00
committed by Payam Ghafari
orang tua cb3f8b4f97
melakukan 13ca42f17d
+9
Melihat File
@@ -108,6 +108,15 @@ hipError_t hipGLGetDevices(unsigned int* pHipDeviceCount, int* pHipDevices,
LogError("Failed : Invalid Shared Group Reference \n");
HIP_RETURN(hipErrorInvalidValue);
}
amd::GLFunctions* glenv = hip::getCurrentDevice()->asContext()->glenv();
if (glenv != nullptr) {
#ifdef _WIN32
info.hCtx_ = glenv->wglGetCurrentContext_();
#else
info.hCtx_ = glenv->glXGetCurrentContext_();
#endif
hip::getCurrentDevice()->asContext()->setInfo(info);
}
*pHipDeviceCount = 0;
switch (deviceList) {