Sync & queriesGL 3.0
glEndConditionalRender
Ends the block started by glBeginConditionalRender; later draws run normally.
Signature
void glEndConditionalRender(void);
How it works
Closes the conditional block. Keep the block short, usually the draws of one object, so each object can be culled on its own.
Errors
When the call is invalid it does nothing and sets an error, which glGetError returns:
- GL_INVALID_OPERATION
- No conditional rendering is active.
Example
example.cpp
1glBeginConditionalRender(query, GL_QUERY_NO_WAIT);
2drawObject();
3glEndConditionalRender();