summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_api.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-18 15:18:55 -0600
committerBrian <[email protected]>2007-10-18 15:18:55 -0600
commit0007cd7ba0a61fcbcf9c9d19e014408be25ae496 (patch)
tree37199fc1c03f0c29cadc7072276113f5101d939d /src/mesa/drivers/x11/xm_api.c
parent5d39f4f9fdba4cd3333a39af583a73b85eb6bb74 (diff)
Alternate CopyPixels path based on get/put_tile().
For some drivers (like Xlib) it's not possible to treat the front/back color buffers as pipe_regions. So pipe->region_copy() won't work. Added a new state tracker field indicating if we can use regions for colorbuffer accesses. This should probably be re-considered someday...
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r--src/mesa/drivers/x11/xm_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index 1d3f799f368..ff83dab0752 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -1603,6 +1603,8 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
mesaCtx->st->pipe->surface_alloc = xmesa_surface_alloc;
mesaCtx->st->pipe->supported_formats = xmesa_supported_formats;
+ mesaCtx->st->haveFramebufferRegions = GL_FALSE;
+
/* special pipe->clear function */
mesaCtx->st->pipe->clear = xmesa_clear;