RSS

(root)/iphone/common : 71 : source/VertexArray.m

To get this branch, use:
bzr branch /browse/iphone/common

« back to all changes in this revision

Viewing changes to source/VertexArray.m

Dömötör Gulyás
2010-08-09 13:29:37
Revision ID: dognotdog@gmail.com-20100809112937-ltb573qbvp9e39ak
fixes bug when VAOs are used in VertexArray: VAO now correctly setup again after applying transform to vertices; adds threaded animation mode to GLESView; fixes warning in ES2Shader uniform setters

Show diffs side-by-side

added added

removed removed

476
476
 
477
477
- (void) generateVBO
478
478
{
 
479
        BOOL regenVAO = !vertexBufferName && useVAO;
 
480
 
479
481
        if (!vertexBufferName)
480
482
        {
481
483
                glGenBuffers(1, &vertexBufferName);
492
494
        if (!vertexArrayObject && useVAO)
493
495
        {
494
496
                glGenVertexArraysOES(1, &vertexArrayObject);
 
497
                regenVAO = YES;
 
498
        }
 
499
        if (regenVAO)
 
500
        {
495
501
                glBindVertexArrayOES(vertexArrayObject);
496
502
                
497
503
                [self setupArrayState];

Loggerhead 1.17 is a web-based interface for Bazaar branches