diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-01 20:14:50 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-01 20:14:50 +0000 |
commit | b252e0f47f0bd5b4a086eabb5cc2d4f9cd61a785 (patch) | |
tree | f14650f03e6b8d023ab208e8b908bc4958dea704 | |
parent | 238de2db120bb090a7f28a25093874b32a90c546 (diff) |
added an assertion to help debug broken stencil readback
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_span.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_span.c b/src/mesa/drivers/dri/r200/r200_span.c index 898ff61e76..9f910ebacc 100644 --- a/src/mesa/drivers/dri/r200/r200_span.c +++ b/src/mesa/drivers/dri/r200/r200_span.c @@ -80,13 +80,15 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define LOCAL_DEPTH_VARS \ r200ContextPtr rmesa = R200_CONTEXT(ctx); \ + r200ScreenPtr r200Screen = rmesa->r200Screen; \ __DRIscreenPrivate *sPriv = rmesa->dri.screen; \ __DRIdrawablePrivate *dPriv = rmesa->dri.drawable; \ driRenderbuffer *drb = (driRenderbuffer *) rb; \ GLuint height = dPriv->h; \ GLuint xo = dPriv->x; \ GLuint yo = dPriv->y; \ - char *buf = (char *)(sPriv->pFB + drb->offset); + char *buf = (char *)(sPriv->pFB + drb->offset); \ + assert(drb->offset == r200Screen->depthOffset); #define LOCAL_STENCIL_VARS LOCAL_DEPTH_VARS |