From 654cc35482b3531f47f0bec29f2e591278e8e5d5 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Mon, 9 Feb 2004 04:02:08 +0000 Subject: [PATCH] Mysteriously uncommitted. Fixed. --- libs/video/targets/vid_common_gl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/video/targets/vid_common_gl.c b/libs/video/targets/vid_common_gl.c index aebf66e57..e8a24e375 100644 --- a/libs/video/targets/vid_common_gl.c +++ b/libs/video/targets/vid_common_gl.c @@ -114,10 +114,11 @@ gl_max_size_f (cvar_t *var) // Check driver's max texture size qfglGetIntegerv (GL_MAX_TEXTURE_SIZE, &texSize); + if (var->int_val < 1) Cvar_SetValue (var, texSize); else - Cvar_SetValue (var, bound (1, var->int_val, texSize)); + Cvar_SetValue (var, bound (1, var->int_val, texSize)); } static void @@ -146,7 +147,7 @@ gl_tessellate_f (cvar_t * var) tess = 0; if (var) Con_Printf ("TruForm (GL_ATI_pn_triangles) is not supported by " - "your hardware and/or drivers."); + "your hardware and/or drivers.\n"); } }