From 5fc77887d0d78d04c30ae0002c7984a2871392ab Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sun, 25 Apr 2021 15:27:04 +0100 Subject: [PATCH] Remove unnecessary branches --- GL/immediate.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/GL/immediate.c b/GL/immediate.c index f1c6341..7cb4057 100644 --- a/GL/immediate.c +++ b/GL/immediate.c @@ -182,15 +182,9 @@ void APIENTRY glVertex3f(GLfloat x, GLfloat y, GLfloat z) { vert->x = x; vert->y = y; vert->z = z; - - if(ENABLED_VERTEX_ATTRIBUTES & UV_ENABLED_FLAG) { - vert->u = UV_COORD[0]; - vert->v = UV_COORD[1]; - } - - if(ENABLED_VERTEX_ATTRIBUTES & DIFFUSE_ENABLED_FLAG) { - *((uint32_t*) vert->bgra) = *((uint32_t*) COLOR); - } + vert->u = UV_COORD[0]; + vert->v = UV_COORD[1]; + *((uint32_t*) vert->bgra) = *((uint32_t*) COLOR); if(ENABLED_VERTEX_ATTRIBUTES & NORMAL_ENABLED_FLAG) { GLuint* n = aligned_vector_extend(&NORMALS, 1);