mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Refactor of glcl sharing
new pattern to load gl functions from dll Change-Id: I6f39945d3c53b5a169b0829f36b2102c3ef5e18a
This commit is contained in:

committed by
sys_ocldev

parent
526a3a664b
commit
51ecef7ec2
@ -292,12 +292,9 @@ class MockGLSharingFunctions : public GLSharingFunctions {
|
||||
((ContextInfo *)pContextInfo)->DeviceHandle = 2;
|
||||
return GLSetSharedOCLContextStateReturnedValue;
|
||||
}
|
||||
using GLSharingFunctions::glGetIntegerv;
|
||||
using GLSharingFunctions::glGetString;
|
||||
|
||||
void *loadGlFunction(const char *FunctionName, DWORD HDC) { return GLSharingFunctions::loadGlFunction(FunctionName, HDC); };
|
||||
|
||||
void setGetStringFcn(PFNglGetString fcn) { glGetString = fcn; }
|
||||
|
||||
void setglGetIntegervToNull() { glGetIntegerv = nullptr; }
|
||||
MockGLSharingFunctions() {
|
||||
glGetString = (PFNglGetString)glGetStringTest;
|
||||
glGetStringi = (PFNglGetStringi)glGetStringiTest;
|
||||
|
Reference in New Issue
Block a user