Bug 5510 - Incorrect number of overbright bits printed by GfxInfo_f()
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: Other All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-05-09 04:39 EDT by Serge Belyshev
Modified: 2012-07-01 12:59:28 EDT
1 user (show)

See Also:



Description Serge Belyshev 2012-05-09 04:39:06 EDT
To print number of overbright bits correctly, GfxInfo_f() has to be called after R_InitImages(), like this:

---
 code/renderer/tr_init.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: quake3/code/renderer/tr_init.c
===================================================================
--- quake3.orig/code/renderer/tr_init.c
+++ quake3/code/renderer/tr_init.c
@@ -214,9 +214,6 @@ static void InitOpenGL( void )
 	// init command buffers and SMP
 	R_InitCommandBuffers();
 
-	// print info
-	GfxInfo_f();
-
 	// set default state
 	GL_SetDefaultState();
 }
@@ -1226,6 +1223,9 @@ void R_Init( void ) {
 
 	R_InitImages();
 
+	// print info (has to be called after R_InitImages())
+	GfxInfo_f();
+
 	R_InitShaders();
 
 	R_InitSkins();
Comment 1 Thilo Schulz 2012-07-01 12:59:28 EDT
fixed r2292