summaryrefslogtreecommitdiffstats
path: root/main/xf86-video-xgixp/api-compat-fix-for-DRAWABLE_BUFFER.patch
blob: f8cb64673ac28d67a4a7f201c55ead86c6113500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 86258a6fd8fc8bb09a52ee446b37abe6bd0843ef Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Fri, 25 Mar 2011 22:46:55 +0000
Subject: API compat fix for DRAWABLE_BUFFER

Signed-off-by: Adam Jackson <ajax@redhat.com>
---
diff --git a/src/xgi_driver.c b/src/xgi_driver.c
index e54d8c7..189b84a 100644
--- a/src/xgi_driver.c
+++ b/src/xgi_driver.c
@@ -2708,7 +2708,9 @@ xg47_setup_fb_wrap(ReadMemoryProcPtr *read_ptr,
 {
     switch (pDraw->type) {
     case DRAWABLE_WINDOW:
+#ifdef DRAWABLE_BUFFER
     case DRAWABLE_BUFFER:
+#endif
 	*read_ptr = xg47_read_memory_swap_func;
 	*write_ptr = xg47_write_memory_swap_func;
 	break;
--
cgit v0.8.3-6-g21f6