Pass glVertexAttribNN() to the driver.

This also fixes memset() call that used to be placed after struct init.
This commit is contained in:
Igor Chernyshev 2013-09-05 18:54:03 -07:00
parent 39a386c369
commit 410c0d5668
3 changed files with 207 additions and 1906 deletions

View file

@ -62,7 +62,7 @@ iffFormulae = {
},
'ImmAttr' : {
'entries' : [ 'glVertexAttrib(1|2|3|4)(N|)(b|d|f|i|s|ub|us)(v|)(ARB|)' ],
'impl' : [ '_context->iff->Attr${m2}<${m1}>( _context, ${arg0plus} );', ],
'prefix' : [ '_context->iff->Attr${m2}<${m1}>( _context, ${arg0plus} );', ],
},
'ImmFixedAttrf' : {
'entries' : [ 'gl(SecondaryColor|Color|Normal|FogCoord)(2|3|4)(d|f)(v|)(EXT|)?' ],

File diff suppressed because it is too large Load diff

View file

@ -734,13 +734,14 @@ struct Iff
immProvoking = 0;
immCurrent = 0;
immPrim = GL_POINTS;
memset(&immVab, 0, sizeof(immVab));
for( GLuint i = 0; i < maxVertexAttribs; i++ ) {
Float4 & a = immVab.attr[i];
a.x = a.y = a.z = 0.0f; a.w = 1.0f;
}
memset(immArray,0,sizeof(immArray));
memset(&immVab, 0, sizeof(immVab));
immShadowVao = 0;