aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-03-12 19:20:20 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-03-12 19:20:20 +0000
commit39dffd4dcfaa859cdc029b506abf667a5b7be71f (patch)
tree9ef3bc50f4d789dd1ff0f1488851de4b58a14eb9 /code
parentbab4598e0d94d001649434931b4b9e342aacf1c1 (diff)
downloadioquake3-aero-39dffd4dcfaa859cdc029b506abf667a5b7be71f.tar.gz
ioquake3-aero-39dffd4dcfaa859cdc029b506abf667a5b7be71f.zip
* Remove unexplainable ( tr.overbrightBits > 0 ) condition when correcting
gamma in screenshots git-svn-id: svn://svn.icculus.org/quake3/trunk@1509 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/renderer/tr_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/renderer/tr_init.c b/code/renderer/tr_init.c
index 48447ae..0681919 100644
--- a/code/renderer/tr_init.c
+++ b/code/renderer/tr_init.c
@@ -376,7 +376,7 @@ void RB_TakeScreenshot( int x, int y, int width, int height, char *fileName ) {
}
// gamma correct
- if ( ( tr.overbrightBits > 0 ) && glConfig.deviceSupportsGamma ) {
+ if ( glConfig.deviceSupportsGamma ) {
R_GammaCorrect( buffer + 18, glConfig.vidWidth * glConfig.vidHeight * 3 );
}
@@ -398,7 +398,7 @@ void RB_TakeScreenshotJPEG( int x, int y, int width, int height, char *fileName
qglReadPixels( x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, buffer );
// gamma correct
- if ( ( tr.overbrightBits > 0 ) && glConfig.deviceSupportsGamma ) {
+ if ( glConfig.deviceSupportsGamma ) {
R_GammaCorrect( buffer, glConfig.vidWidth * glConfig.vidHeight * 4 );
}
@@ -553,7 +553,7 @@ void R_LevelShot( void ) {
}
// gamma correct
- if ( ( tr.overbrightBits > 0 ) && glConfig.deviceSupportsGamma ) {
+ if ( glConfig.deviceSupportsGamma ) {
R_GammaCorrect( buffer + 18, 128 * 128 * 3 );
}
@@ -702,7 +702,7 @@ const void *RB_TakeVideoFrameCmd( const void *data )
GL_UNSIGNED_BYTE, cmd->captureBuffer );
// gamma correct
- if( ( tr.overbrightBits > 0 ) && glConfig.deviceSupportsGamma )
+ if( glConfig.deviceSupportsGamma )
R_GammaCorrect( cmd->captureBuffer, cmd->width * cmd->height * 4 );
if( cmd->motionJpeg )