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.
This commit is contained in:
Brian 2008-01-28 13:02:11 -07:00
parent 043fc00a60
commit 41899c70a7

View file

@ -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);