TINYGL: Use astyle to (semi-selectively) apply the code-formatting conventions to TinyGL.

This commit is contained in:
Einar Johan Trøan Sømåen 2014-02-20 18:46:49 +01:00
parent b21271bd82
commit 698ef4a37c
26 changed files with 835 additions and 838 deletions

View file

@ -20,7 +20,7 @@ GLSpecBuf *specbuf_get_buffer(GLContext *c, const int shininess_i, const float s
if (found->last_used < oldest->last_used) {
oldest = found;
}
found = found->next;
found = found->next;
}
if (found) {
found->last_used = c->specbuf_used_counter++;
@ -37,7 +37,7 @@ GLSpecBuf *specbuf_get_buffer(GLContext *c, const int shininess_i, const float s
buf->last_used = c->specbuf_used_counter++;
buf->shininess_i = shininess_i;
calc_buf(buf, shininess);
return buf;
return buf;
}
//overwrite the lru buffer
oldest->shininess_i = shininess_i;