PDA

View Full Version : glScissor + glClear(depth|stencil) + render to shadow buffer == broken



JelloFish
11-15-2002, 10:14 AM
Im having some really weird issues trying to clear the depth in my shadow buffer. It seems that having calling glScissor(0,0,shadowwidth-1,shadowwidth-1) makes glClear not clear the depth at all, whereas glScissor(0,0,shadowwidth,shadowwidth) clears the entire depth buffer. my glClearDepth is 1. Does anyone have any idea why this behavior would be happening?

cass
11-15-2002, 02:55 PM
Hi Jello,

What GPU and drivers are you using?

Cass

JelloFish
11-15-2002, 03:10 PM
GeForce3 4072 WHQL.

JelloFish
11-15-2002, 06:47 PM
Do you think it might be a driver bug cass? Thanks for checking it out.

JelloFish
11-18-2002, 01:02 PM
UPDATE: When i use just regular pbuffers and copytexsubimage the scissor technique appears to work fine.