[quake3-commits] [ioquake/ioq3] 7e9b92: Fix displayed color/depth/stencil bits values

Zack Middleton zack at cloemail.com
Wed Apr 11 03:13:04 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 7e9b92de12518a7349f14ebc777b938608965b4a
      https://github.com/ioquake/ioq3/commit/7e9b92de12518a7349f14ebc777b938608965b4a
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2018-04-11 (Wed, 11 Apr 2018)

  Changed paths:
    M code/sdl/sdl_glimp.c

  Log Message:
  -----------
  Fix displayed color/depth/stencil bits values

The values passed to SDL are just the minimum required. Get actually
values of colorbits, depthbits, and stencilbits from SDL instead of
assuming that the engine got exactly what it asked for.


  Commit: 61404e25c472fd972af1455f5739e41e8627c828
      https://github.com/ioquake/ioq3/commit/61404e25c472fd972af1455f5739e41e8627c828
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2018-04-11 (Wed, 11 Apr 2018)

  Changed paths:
    M code/q3_ui/ui_video.c

  Log Message:
  -----------
  Restore setting r_colorbits in q3_ui

In 2007 in ioquake3 unified-sdl branch (revision 1144) setting
r_colorbits in q3_ui was removed but the Color Depth menu option was
still kept. Setting r_colorbits was not removed from the Team Arena UI.

In 2011 I removed the Color Depth menu option from q3_ui as it did not
change any cvars. Yesterday I restored the option not realizing this
and thinking that requesting 16-bit color depth worked.

Add setting r_colorbits back to q3_ui so Color Depth menu option works
again. I changed Color Depth options 'Default' to reset r_stencilbits
instead of 0 and '32 bit' to use r_stencilbits 8 instead of not changing
the value.

However I discovered r_colorbits 16 does not actually work on my system
(Debian Jessie x86_64 nvidia). ioquake3 was reporting the requested
value instead of the actual obtained value. Fixed in my previous commit.


  Commit: dfb49e78b5d9bcb15f1b5105f4d1cc5564246781
      https://github.com/ioquake/ioq3/commit/dfb49e78b5d9bcb15f1b5105f4d1cc5564246781
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2018-04-11 (Wed, 11 Apr 2018)

  Changed paths:
    M code/ui/ui_main.c

  Log Message:
  -----------
  Make setting r_stencilbits more consistent in Team Arena UI

I changed Color Depth options 'Default' to reset r_stencilbits instead
of 0 and '32 bit' to use r_stencilbits 8 instead of not changing the
value. (This matches my q3_ui changes in the previous commit.)

Set r_stencilbits when changing graphics presets like when changing
Color Depth.


Compare: https://github.com/ioquake/ioq3/compare/43602a7eb85d...dfb49e78b5d9


More information about the quake3-commits mailing list