diff options
author | Jakob Bornecrantz <[email protected]> | 2010-05-21 20:37:23 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-05-21 21:25:07 +0100 |
commit | a93f9f343a64ce91587af66761399f9d4c180015 (patch) | |
tree | 02fe536058d72077e38534e9388898cccac4f416 /src/gallium/state_trackers/dri/common/dri_screen.c | |
parent | 5f66363f8ed26d6f3fc8fcccde804fe1fea1bbaa (diff) |
gallium: Fix invalidate framebuffer with old libGL libraries
Diffstat (limited to 'src/gallium/state_trackers/dri/common/dri_screen.c')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c index f5c936e1823..5decdb23b15 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.c +++ b/src/gallium/state_trackers/dri/common/dri_screen.c @@ -341,7 +341,14 @@ static int dri_get_param(struct st_manager *smapi, enum st_manager_param param) { - return 0; + struct dri_screen *screen = (struct dri_screen *)smapi; + + switch(param) { + case ST_MANAGER_BROKEN_INVALIDATE: + return screen->broken_invalidate; + default: + return 0; + } } static void |