diff options
author | Brian <[email protected]> | 2007-08-02 16:08:18 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-02 16:08:18 -0600 |
commit | 47fdaf0ed9ef2f89cdaa97d0d48b1f1194d710c6 (patch) | |
tree | 3e4be03579b8bc860dc29e4c7b2ae93fded4e759 /src/mesa/drivers/x11/xm_api.c | |
parent | 184b6a1f04e060e73858438561a0261d32eeb506 (diff) |
pipe->clear() now takes a surface, rather than color/depth/stencil flags.
pipe->clear() only used to clear whole buffers (no scissor) w/out masking.
Draw a colored quadrilateral in all other cases.
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index 92d37085d1a..7fb99df5f4c 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -1573,8 +1573,11 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) st_create_context( mesaCtx, softpipe_create() ); + mesaCtx->Driver.Clear = xmesa_clear_buffers; + /* mesaCtx->st->pipe->clear = xmesa_clear; - + */ + return c; } |