Bug 5511 - r_ignorehwgamma 1 does not actually turn on software gamma
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:58 EDT by Serge Belyshev
Modified: 2012-07-01 13:01:40 EDT
1 user (show)

See Also:


Attachments
Fix "r_ignorehwgamma 1" and support for "r_ignorehwgamma -1" (1.43 KB, patch)
2012-05-09 04:58 EDT, Serge Belyshev

Description Serge Belyshev 2012-05-09 04:58:36 EDT
Created attachment 3143 [details]
Fix "r_ignorehwgamma 1" and support for "r_ignorehwgamma -1"

Due to poor support for hardware SDL gamma (see http://bugzilla.libsdl.org/show_bug.cgi?id=971 ), software gamma is important, but currently there is no way to actually turn s/w gamma on if SDL pretends to support h/w.

Currently, r_ignorehwgamma 1 just turns off calls to GLimp_SetGamma() without resetting glConfig.deviceSupportsGamma to zero, which results in dim output.

Fixed by a simple patch that also adds support for forcing hardware gamma via "r_ignorehwgamma -1".
Comment 1 Thilo Schulz 2012-07-01 13:01:40 EDT
committed r2293, thanks