SWDEV-312368 - Segmentation fault in test_gl
When OCL failed to obtain function pointer from GL, we should not call it. Change-Id: I50f69d270ce445386906a286e44c4e8c83722302
Tá an tiomantas seo le fáil i:
@@ -804,10 +804,18 @@ bool Device::glDissociate(void* GLplatformContext, void* GLdeviceContext) const
|
||||
*/
|
||||
#ifdef ATI_OS_LINUX
|
||||
GLXContext ctx = (GLXContext)GLplatformContext;
|
||||
return (glXEndCLInteropAMD(ctx, 0)) ? true : false;
|
||||
if (glXEndCLInteropAMD == nullptr) {
|
||||
return false;
|
||||
} else {
|
||||
return (glXEndCLInteropAMD(ctx, 0)) ? true : false;
|
||||
}
|
||||
#else
|
||||
HGLRC hRC = (HGLRC)GLplatformContext;
|
||||
return (wglEndCLInteropAMD(hRC, 0)) ? true : false;
|
||||
if (wglEndCLInteropAMD == nullptr) {
|
||||
return false;
|
||||
} else {
|
||||
return (wglEndCLInteropAMD(hRC, 0)) ? true : false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir