Changeset 108 for trunk/src/gl
- Timestamp:
- 06/05/13 17:19:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_context.cc
r64 r108 351 351 gl_context::gl_context() 352 352 { 353 // TODO: do we really need this? 354 glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ); 353 355 force_apply_render_state( m_render_state ); 354 356 } … … 357 359 { 358 360 apply_render_state( rs ); 359 p->bind(); 360 va->bind(); 361 glDrawArrays( primitive_to_enum(prim), 0, count); 362 va->unbind(); 363 p->unbind(); 364 } 361 if ( count > 0 ) 362 { 363 p->bind(); 364 va->bind(); 365 glDrawArrays( primitive_to_enum(prim), 0, count); 366 va->unbind(); 367 p->unbind(); 368 } 369 }
Note: See TracChangeset
for help on using the changeset viewer.