From 1cd0ba3f8f3634bda4c4483658c2ebf45515a224 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Fri, 20 Feb 2004 22:50:47 +0000 Subject: [PATCH] Pale void. --- libs/video/renderer/gl/gl_mod_alias.c | 1 - libs/video/renderer/gl/noisetextures.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/video/renderer/gl/gl_mod_alias.c b/libs/video/renderer/gl/gl_mod_alias.c index b2c2825d5..c45b031d8 100644 --- a/libs/video/renderer/gl/gl_mod_alias.c +++ b/libs/video/renderer/gl/gl_mod_alias.c @@ -711,7 +711,6 @@ R_DrawAliasModel (entity_t *e) // draw all the triangles if (model->fullbright) { - qfglBindTexture (GL_TEXTURE_2D, texture); if (vo->tex_coord) GL_DrawAliasFrameTri_fb (vo); diff --git a/libs/video/renderer/gl/noisetextures.c b/libs/video/renderer/gl/noisetextures.c index 6b30289fc..20bf5d3df 100644 --- a/libs/video/renderer/gl/noisetextures.c +++ b/libs/video/renderer/gl/noisetextures.c @@ -132,11 +132,11 @@ noise_plasma (unsigned char *noise, int size) else d = -size / 64; - memset(noise, 128, sizeof (*noise)); + memset (noise, 128, sizeof (*noise)); for (i = size; i > 0; i /= 2) { - for (j=0; j < size; j += i) { - for (k=0; k < size; k += i) { + for (j = 0; j < size; j += i) { + for (k = 0; k < size; k += i) { if (d >= 0) c = i * d; else @@ -144,7 +144,7 @@ noise_plasma (unsigned char *noise, int size) c = qfrandom (c * 2) - c; - for (a=j; a < j + i; a++) + for (a = j; a < j + i; a++) for (b = k; b < k + i; b++) noise[a * size + b] += c; }