Jonas Sourlier
Jonas Sourlier

Reputation: 14475

glFenceSync alternative in OpenGL ES 2.0

I see that glFenceSync does not exist in OpenGL ES 2.0, it was added only in OpenGL ES 3.0.

Does OpenGL ES 2.0 offer any alternative of syncing between CPU and GPU, aside from the brutal force glFinish?

Upvotes: 2

Views: 1744

Answers (2)

eonil
eonil

Reputation: 86155

In glext.h.

GL_API GLsync glFenceSyncAPPLE(GLenum condition, GLbitfield flags) __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_6_0);

I am pretty sure this is what you want. Anyway available only on iOS 6.0 or later.

Upvotes: 1

dragostis
dragostis

Reputation: 2662

You have different calls in OpenGL ES 2.0 that give some insight into different matters concerning GL, but mainly, you're left with glFinish only.

Upvotes: 2

Related Questions