depot/third_party/nixpkgs/pkgs/os-specific/linux/ati-drivers/patches/patch-samples.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

26 lines
934 B
Diff

diff --git a/samples/fgl_glxgears/fgl_glxgears.c b/samples/fgl_glxgears/fgl_glxgears.c
index 6c8e313..2b8d035 100644
--- a/samples/fgl_glxgears/fgl_glxgears.c
+++ b/samples/fgl_glxgears/fgl_glxgears.c
@@ -1096,8 +1096,6 @@ static void event_loop(void)
view_rotx -= 5.0;
}
else {
- r = XLookupString(&event.xkey, buffer, sizeof(buffer),
- NULL, NULL);
if (buffer[0] == 27) {
/* escape */
return;
diff -Nur a/samples/fgl_glxgears/fgl_glxgears.c b/samples/fgl_glxgears/fgl_glxgears.c
--- a/samples/fgl_glxgears/fgl_glxgears.c 2012-08-29 09:59:03.000000000 +0300
+++ b/samples/fgl_glxgears/fgl_glxgears.c 2013-09-07 09:26:11.034723135 +0300
@@ -78,7 +78,6 @@
#endif // _WIN32
#define INT_PTR ptrdiff_t
-#include <GL/glATI.h>
#ifdef _WIN32
#include <GL/wglATI.h>