glScissor + glClear(depth|stencil) + render to shadow buffer == broken

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?

Hi Jello,

What GPU and drivers are you using?


GeForce3 4072 WHQL.

Do you think it might be a driver bug cass? Thanks for checking it out.

UPDATE: When i use just regular pbuffers and copytexsubimage the scissor technique appears to work fine.