[quake3-bugzilla] [Bug 4734] New: Q3UI: Stencil shadows do not work after changing video settings

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sat Aug 28 12:41:49 EDT 2010


http://bugzilla.icculus.org/show_bug.cgi?id=4734

           Summary: Q3UI: Stencil shadows do not work after changing video
                    settings
           Product: ioquake3
           Version: SVN HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Video
        AssignedTo: zakk at icculus.org
        ReportedBy: ZTurtleMan at gmail.com
         QAContact: quake3-bugzilla at icculus.org


On my GNU/Linux computer with integrated NVidia graphics, r_stencilbits must be
set to 8 to use stencil shadows (cg_shadows 2). r_stencilbits's default value
is 8, but q3_ui sets it to 0 when the video mode is changed.

In GraphicsOptions_ApplyChanges (q3_ui/ui_video.c), r_colorbits, r_depthbits,
and r_stencilbits are set to 0.

In GLimp_SetMode (sdl/sdl_glimp.c), there are checks to see if r_colorbits or
r_depthbits are 0, so a default value can be used. There is  no default value
for r_stencilbits.

Originally r_stencilbits was only set to 0 if colordepth was "Default" or "16
Bit", not when it was "32 Bit".
See http://svn.icculus.org/quake3/trunk/code/q3_ui/ui_video.c?r1=390&r2=1161

Setting r_stencilbits to 8 or simply removing setting r_stencilbits to 0 fixes
the problem. I am unsure of the proper solution.

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list