macOS 10.13: broken CVOpenGLBufferCreate?

Hi,


looks like CVOpenGLBufferCreate does not work anymore, returns -6660 (it's not even a valid error), with NULL output value. I tried the pool-based api, same results. The api is not marked as deprecated, and it actually still works with a 10.12 build on a 10.13 mac.


So, bug, broken api, deprecated api? If deprecated, what's the replacement (Metal is not supported on all macs running High Sierra)? Please advise.

rdar://35829245

(with sample code)


Thank you.

The same still happens under 10.13.4. CVOpenGLBufferCreate always return error code -6660. According to the CVReturn error codes, this is code "kCVReturnFirst", which isn't even a real error code. It could also mean "kCVReturnError". But this one also doesn't describe the error.


As rsebbe already said, it works under 10.12, which I can confirm.


Thank you.

For reference: I got the confirmation (via bug report) that this API is no longer supported as of 10.13 SDK. FBO should be used instead.

macOS 10.13: broken CVOpenGLBufferCreate?
 
 
Q