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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user