| 686 | } |
| 687 | |
| 688 | void end() |
| 689 | { |
| 690 | auto ctx = gl::context(); |
| 691 | |
| 692 | if( ctx->immediate().empty() ) |
| 693 | return; |
| 694 | else { |
| 695 | const GlslProg* curGlslProg = ctx->getGlslProg(); |
| 696 | if( ! curGlslProg ) |
| 697 | ctx->pushGlslProg( ctx->getStockShader( ShaderDef().color() ).get() ); |
| 698 | |
| 699 | ctx->immediate().draw(); |
| 700 | ctx->immediate().clear(); |
| 701 | |
| 702 | if( ! curGlslProg ) |
| 703 | ctx->popGlslProg(); |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | #if ! defined( CINDER_GL_ES_2 ) |
| 708 | void bindBufferBase( GLenum target, int index, BufferObjRef buffer ) |
no test coverage detected