Browse Source

r300: add just in case warn I don't think this can actually happen

tags/mesa_7_6_rc1
Dave Airlie 16 years ago
parent
commit
3cc9a28b9b
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/mesa/drivers/dri/r300/r300_render.c

+ 5
- 0
src/mesa/drivers/dri/r300/r300_render.c View File

@@ -380,6 +380,11 @@ void r300RunRenderPrimitive(GLcontext * ctx, int start, int end, int prim)
if (align % 4)
nr -= incr;
} while(align % 4);
if (nr <= 0) {
WARN_ONCE("did the impossible happen? we never aligned nr to dword\n");
return;
}
}
r300FireEB(rmesa, nr, type, offset);


Loading…
Cancel
Save