diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2010-08-07 04:38:35 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2010-08-07 04:38:35 +0000 |
commit | 1253b1106feb1ab4246362e76383a32918fd7a6c (patch) | |
tree | 3ec18fe866ce6f44c2808362d45373522718ca6a /x11-drivers/xf86-video-virtualbox/files | |
parent | Fixed mesa patch (bug #331473). (diff) | |
download | gentoo-2-1253b1106feb1ab4246362e76383a32918fd7a6c.tar.gz gentoo-2-1253b1106feb1ab4246362e76383a32918fd7a6c.tar.bz2 gentoo-2-1253b1106feb1ab4246362e76383a32918fd7a6c.zip |
Fixed mesa patch (bug #331473).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'x11-drivers/xf86-video-virtualbox/files')
-rw-r--r-- | x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3.2.8-mesa-check.patch | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3.2.8-mesa-check.patch b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3.2.8-mesa-check.patch index da82d564c025..6813a1744695 100644 --- a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3.2.8-mesa-check.patch +++ b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3.2.8-mesa-check.patch @@ -1,5 +1,5 @@ ---- VirtualBox-3.2.8_OSE/configure -+++ VirtualBox-3.2.8_OSE/configure +--- configure ++++ configure @@ -1225,10 +1225,7 @@ XCloseDisplay(dpy); } @@ -12,24 +12,25 @@ } -@@ -1345,20 +1342,6 @@ - #include <X11/Xmu/StdCmap.h> +@@ -1382,21 +1379,6 @@ + #include <GL/glu.h> extern "C" int main(void) { - Display *dpy; -- int scrn_num; -- Screen *scrn; +- int major, minor; - - dpy = XOpenDisplay(NULL); - if (dpy) - { -- scrn_num = DefaultScreen(dpy); -- scrn = ScreenOfDisplay(dpy, scrn_num); -- Status status = XmuLookupStandardColormap(dpy, RootWindowOfScreen(scrn), 0, -- 24, XA_RGB_DEFAULT_MAP, False, True); -- printf("Status = %x\n", status); +- Bool glx_version = glXQueryVersion(dpy, &major, &minor); - XCloseDisplay(dpy); +- if (glx_version) +- { +- printf("found version %u.%u, OK.\n", major, minor); +- return 0; +- } - } +- printf("found (inactive), OK.\n"); return 0; } EOF |