Remove unnecessary branches
This commit is contained in:
parent
16243acd7b
commit
5fc77887d0
|
@ -182,15 +182,9 @@ void APIENTRY glVertex3f(GLfloat x, GLfloat y, GLfloat z) {
|
||||||
vert->x = x;
|
vert->x = x;
|
||||||
vert->y = y;
|
vert->y = y;
|
||||||
vert->z = z;
|
vert->z = z;
|
||||||
|
vert->u = UV_COORD[0];
|
||||||
if(ENABLED_VERTEX_ATTRIBUTES & UV_ENABLED_FLAG) {
|
vert->v = UV_COORD[1];
|
||||||
vert->u = UV_COORD[0];
|
*((uint32_t*) vert->bgra) = *((uint32_t*) COLOR);
|
||||||
vert->v = UV_COORD[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(ENABLED_VERTEX_ATTRIBUTES & DIFFUSE_ENABLED_FLAG) {
|
|
||||||
*((uint32_t*) vert->bgra) = *((uint32_t*) COLOR);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(ENABLED_VERTEX_ATTRIBUTES & NORMAL_ENABLED_FLAG) {
|
if(ENABLED_VERTEX_ATTRIBUTES & NORMAL_ENABLED_FLAG) {
|
||||||
GLuint* n = aligned_vector_extend(&NORMALS, 1);
|
GLuint* n = aligned_vector_extend(&NORMALS, 1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user