From 58d4eb474ec97b78531d6551c249e568a7242eb3 Mon Sep 17 00:00:00 2001 From: hasufell Date: Mon, 12 May 2014 20:55:16 +0200 Subject: [PATCH] Improve inline comments --- src/gl_draw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gl_draw.c b/src/gl_draw.c index 891faaf..c350a00 100644 --- a/src/gl_draw.c +++ b/src/gl_draw.c @@ -125,9 +125,11 @@ static void draw_obj(int32_t const myxrot, int32_t const myyrot, int32_t const myzrot) { + /* rotation */ static int32_t xrot = 0, yrot = 0, zrot = 0; + /* color */ static float red = 90, blue = 90, @@ -150,6 +152,7 @@ static void draw_obj(int32_t const myxrot, return; } + /* increment rotation, if any */ xrot += myxrot; yrot += myyrot; zrot += myzrot; @@ -181,7 +184,6 @@ static void draw_obj(int32_t const myxrot, draw_vertices(obj); glEnd(); - glPopMatrix(); }