diff options
author | Michel Dänzer <[email protected]> | 2007-05-22 14:08:10 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2007-05-22 14:08:10 +0200 |
commit | 043d219b6da0636886f739613380cf44e334f268 (patch) | |
tree | 447bb718549c356925f0f44b064eb9579a2befc7 /src/mesa/drivers/dri/common/dri_util.c | |
parent | 24d965fab52f790188e5de6e67e7387809b1f145 (diff) |
Add interfaces for overriding texture images with driver specific 'offsets'.
To be used by AIGLX for GLX_EXT_texture_from_pixmap without several
additional data copies.
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.c')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 07ac4c7cd5f..dd52f7e9151 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -995,6 +995,9 @@ __driUtilCreateNewScreen(__DRInativeDisplay *dpy, int scrn, __DRIscreen *psc, psc->getMSC = driGetMSC; psc->createNewContext = driCreateNewContext; + if (internal_api_version >= 20070121) + psc->setTexOffset = psp->DriverAPI.setTexOffset; + if ( (psp->DriverAPI.InitDriver != NULL) && !(*psp->DriverAPI.InitDriver)(psp) ) { _mesa_free( psp ); |