| 115 | } |
| 116 | |
| 117 | bool IsGlSharingSupported(const CLDevice& device) { |
| 118 | return clCreateFromGLBuffer && clCreateFromGLTexture && |
| 119 | device.SupportsExtension("cl_khr_gl_sharing"); |
| 120 | } |
| 121 | |
| 122 | AcquiredGlObjects::~AcquiredGlObjects() { Release({}, nullptr).IgnoreError(); } |
| 123 |