summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nv30_state.c
diff options
context:
space:
mode:
authorBen Skeggs <darktama@iinet.net.au>2006-12-23 23:03:55 +1100
committerBen Skeggs <darktama@iinet.net.au>2006-12-23 23:03:55 +1100
commitae8d8d132600cc544b7295c9554e6531bdbd8094 (patch)
tree7efcf3ea7fd2050b629fc34df3ba45ad1a20ed48 /src/mesa/drivers/dri/nouveau/nv30_state.c
parent1dd6759c059e054a9a2279d2339a5bd8bb83f6b4 (diff)
nouveau: Don't fill nrb->dPriv for private buffers
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv30_state.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv30_state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv30_state.c b/src/mesa/drivers/dri/nouveau/nv30_state.c
index 4169dad661..35b428b37c 100644
--- a/src/mesa/drivers/dri/nouveau/nv30_state.c
+++ b/src/mesa/drivers/dri/nouveau/nv30_state.c
@@ -577,7 +577,7 @@ static void nv30Scissor(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h)
/* Adjust offsets if drawing to a window */
nrb = nouveau_current_draw_buffer(ctx);
- if (nrb && nrb->map) {
+ if (nrb && nrb->dPriv) {
x += nrb->dPriv->x;
y += nrb->dPriv->y;
}
@@ -690,7 +690,7 @@ static void nv30WindowMoved(nouveauContextPtr nmesa)
/* Adjust offsets if drawing to a window */
nrb = nouveau_current_draw_buffer(ctx);
- if (nrb && nrb->map) {
+ if (nrb && nrb->dPriv) {
x += nrb->dPriv->x;
y += nrb->dPriv->y;
}
@@ -777,7 +777,7 @@ static GLboolean nv30BindBuffers(nouveauContextPtr nmesa, int num_color,
nrb = nouveau_current_draw_buffer(nmesa->glCtx);
w = nrb->mesa.Width;
h = nrb->mesa.Height;
- if (nrb && nrb->map) {
+ if (nrb && nrb->dPriv) {
x = nrb->dPriv->x;
y = nrb->dPriv->y;
} else {