aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-02 20:13:47 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-02 20:13:47 +0000
commit122fe646235067bae2a620f877a6d76af067d7f3 (patch)
tree136082c7dd759e9bb4cfab0a1668d3b43af984c1 /code/renderer
parentf5de4773415589c3e6ed64f9f67479b4f8bb9668 (diff)
downloadioquake3-aero-122fe646235067bae2a620f877a6d76af067d7f3.tar.gz
ioquake3-aero-122fe646235067bae2a620f877a6d76af067d7f3.zip
Cleanups from pomac!
git-svn-id: svn://svn.icculus.org/quake3/trunk@67 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/renderer')
-rw-r--r--code/renderer/tr_bsp.c2
-rw-r--r--code/renderer/tr_curve.c4
-rw-r--r--code/renderer/tr_font.c4
-rw-r--r--code/renderer/tr_local.h4
-rw-r--r--code/renderer/tr_shade_calc.c2
-rw-r--r--code/renderer/tr_shader.c2
6 files changed, 10 insertions, 8 deletions
diff --git a/code/renderer/tr_bsp.c b/code/renderer/tr_bsp.c
index f9d8829..217a3d8 100644
--- a/code/renderer/tr_bsp.c
+++ b/code/renderer/tr_bsp.c
@@ -174,7 +174,7 @@ static void R_LoadLightmaps( lump_t *l ) {
float g = buf_p[j*3+1];
float b = buf_p[j*3+2];
float intensity;
- float out[3];
+ float out[3] = {0.0, 0.0, 0.0};
intensity = 0.33f * r + 0.685f * g + 0.063f * b;
diff --git a/code/renderer/tr_curve.c b/code/renderer/tr_curve.c
index 14db39a..f1a2b31 100644
--- a/code/renderer/tr_curve.c
+++ b/code/renderer/tr_curve.c
@@ -360,7 +360,9 @@ R_SubdividePatchToGrid
srfGridMesh_t *R_SubdividePatchToGrid( int width, int height,
drawVert_t points[MAX_PATCH_SIZE*MAX_PATCH_SIZE] ) {
int i, j, k, l;
- drawVert_t prev, next, mid;
+ drawVert_t_cleared( prev );
+ drawVert_t_cleared( next );
+ drawVert_t_cleared( mid );
float len, maxLen;
int dir;
int t;
diff --git a/code/renderer/tr_font.c b/code/renderer/tr_font.c
index 8aeec5e..5a0c839 100644
--- a/code/renderer/tr_font.c
+++ b/code/renderer/tr_font.c
@@ -298,7 +298,7 @@ static glyphInfo_t *RE_ConstructGlyphInfo(unsigned char *imageOut, int *xOut, in
static int fdOffset;
static byte *fdFile;
-int readInt() {
+int readInt( void ) {
int i = fdFile[fdOffset]+(fdFile[fdOffset+1]<<8)+(fdFile[fdOffset+2]<<16)+(fdFile[fdOffset+3]<<24);
fdOffset += 4;
return i;
@@ -309,7 +309,7 @@ typedef union {
float ffred;
} poor;
-float readFloat() {
+float readFloat( void ) {
poor me;
#if __WORD_ORDER == __BIG_ENDIAN
me.fred[0] = fdFile[fdOffset+3];
diff --git a/code/renderer/tr_local.h b/code/renderer/tr_local.h
index 8ad6701..d5355b2 100644
--- a/code/renderer/tr_local.h
+++ b/code/renderer/tr_local.h
@@ -1601,8 +1601,8 @@ void RE_EndFrame( int *frontEndMsec, int *backEndMsec );
void SaveJPG(char * filename, int quality, int image_width, int image_height, unsigned char *image_buffer);
// font stuff
-void R_InitFreeType();
-void R_DoneFreeType();
+void R_InitFreeType( void );
+void R_DoneFreeType( void );
void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font);
diff --git a/code/renderer/tr_shade_calc.c b/code/renderer/tr_shade_calc.c
index 79d25f2..f6a1171 100644
--- a/code/renderer/tr_shade_calc.c
+++ b/code/renderer/tr_shade_calc.c
@@ -810,7 +810,7 @@ void RB_CalcFogTexCoords( float *st ) {
qboolean eyeOutside;
fog_t *fog;
vec3_t local;
- vec4_t fogDistanceVector, fogDepthVector;
+ vec4_t fogDistanceVector, fogDepthVector = {0, 0, 0, 0};
fog = tr.world->fogs + tess.fogNum;
diff --git a/code/renderer/tr_shader.c b/code/renderer/tr_shader.c
index 4e4face..b99ea1b 100644
--- a/code/renderer/tr_shader.c
+++ b/code/renderer/tr_shader.c
@@ -43,7 +43,7 @@ static char **shaderTextHashTable[MAX_SHADERTEXT_HASH];
return a hash value for the filename
================
*/
-#warning TODO: check if long is ok here
+#warning TODO: check if long is ok here
static long generateHashValue( const char *fname, const int size ) {
int i;
long hash;