Pass glVertexAttribNN() to the driver.
This also fixes memset() call that used to be placed after struct init.
This commit is contained in:
parent
39a386c369
commit
410c0d5668
3 changed files with 207 additions and 1906 deletions
|
|
@ -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
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue