diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-28 13:02:11 -0700 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-02-15 13:50:24 +1100 |
commit | 7c596b80110da42435f8f0714d6f21b760f11c4f (patch) | |
tree | 812187bb4b8750464b8e554e46d7d96cd4b676a5 | |
parent | deaa895fe241cfeab6f390791d462390ff1d1560 (diff) |
Cell: emit state in cell_clear_surface() if dirty.
Without this a program that does nothing but glClear() doesn't work. We need
the framebuffer state.
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_clear.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_clear.c b/src/mesa/pipe/cell/ppu/cell_clear.c index e61bfd9b0f..07b908eec5 100644 --- a/src/mesa/pipe/cell/ppu/cell_clear.c +++ b/src/mesa/pipe/cell/ppu/cell_clear.c @@ -50,6 +50,10 @@ cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps, struct cell_context *cell = cell_context(pipe); uint surfIndex; + if (cell->dirty) + cell_update_derived(cell); + + if (!cell->cbuf_map[0]) cell->cbuf_map[0] = pipe_surface_map(ps); |