Ticket #23060: glx_empty.c.patch

File glx_empty.c.patch, 1.7 KB (added by gale@…, 15 years ago)

Change return type of the four functions from GLint to int in glx_empty.c

Line 
1*** /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/work/AppleSGLX-59/glx_empty.c.orig        2009-12-25 03:19:42.000000000 +0200
2--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/work/AppleSGLX-59/glx_empty.c     2009-12-29 20:00:16.000000000 +0200
3***************
4*** 35,41 ****
5  ** GLX_MESA_swap_frame_usage
6  */
7 
8! GLint
9  glXBeginFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
10  {
11     int status = GLX_BAD_CONTEXT;
12--- 35,41 ----
13  ** GLX_MESA_swap_frame_usage
14  */
15 
16! int
17  glXBeginFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
18  {
19     int status = GLX_BAD_CONTEXT;
20***************
21*** 45,51 ****
22  }
23 
24 
25! GLint
26  glXEndFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
27  {
28     int status = GLX_BAD_CONTEXT;
29--- 45,51 ----
30  }
31 
32 
33! int
34  glXEndFrameTrackingMESA(Display * dpy, GLXDrawable drawable)
35  {
36     int status = GLX_BAD_CONTEXT;
37***************
38*** 55,61 ****
39  }
40 
41 
42! GLint
43  glXGetFrameUsageMESA(Display * dpy, GLXDrawable drawable, GLfloat * usage)
44  {
45     int status = GLX_BAD_CONTEXT;
46--- 55,61 ----
47  }
48 
49 
50! int
51  glXGetFrameUsageMESA(Display * dpy, GLXDrawable drawable, GLfloat * usage)
52  {
53     int status = GLX_BAD_CONTEXT;
54***************
55*** 65,71 ****
56     return status;
57  }
58 
59! GLint
60  glXQueryFrameTrackingMESA(Display * dpy, GLXDrawable drawable,
61                            int64_t * sbc, int64_t * missedFrames,
62                            GLfloat * lastMissedUsage)
63--- 65,71 ----
64     return status;
65  }
66 
67! int
68  glXQueryFrameTrackingMESA(Display * dpy, GLXDrawable drawable,
69                            int64_t * sbc, int64_t * missedFrames,
70                            GLfloat * lastMissedUsage)