glx: remove empty GLX_SGIX_swap_barrier stubs
[mesa.git] / src / glx / apple / glx_empty.c
1 #include "glxclient.h"
2 #include "glxextensions.h"
3 #include "glxconfig.h"
4
5 /*
6 ** GLX_SGI_swap_control
7 */
8 int
9 glXSwapIntervalSGI(int interval)
10 {
11 (void) interval;
12 return 0;
13 }
14
15
16 /*
17 ** GLX_MESA_swap_control
18 */
19 int
20 glXSwapIntervalMESA(unsigned int interval)
21 {
22 (void) interval;
23 return GLX_BAD_CONTEXT;
24 }
25
26
27 int
28 glXGetSwapIntervalMESA(void)
29 {
30 return 0;
31 }
32
33
34 /*
35 ** GLX_SGI_video_sync
36 */
37 int
38 glXGetVideoSyncSGI(unsigned int *count)
39 {
40 (void) count;
41 return GLX_BAD_CONTEXT;
42 }
43
44 int
45 glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count)
46 {
47 (void) count;
48 return GLX_BAD_CONTEXT;
49 }
50
51
52 /*
53 ** GLX_SGIX_swap_group
54 */
55 void
56 glXJoinSwapGroupSGIX(Display * dpy, GLXDrawable drawable, GLXDrawable member)
57 {
58 (void) dpy;
59 (void) drawable;
60 (void) member;
61 }
62
63
64 /*
65 ** GLX_OML_sync_control
66 */
67 Bool
68 glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable,
69 int64_t * ust, int64_t * msc, int64_t * sbc)
70 {
71 (void) dpy;
72 (void) drawable;
73 (void) ust;
74 (void) msc;
75 (void) sbc;
76 return False;
77 }
78
79 int64_t
80 glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable,
81 int64_t target_msc, int64_t divisor, int64_t remainder)
82 {
83 (void) dpy;
84 (void) drawable;
85 (void) target_msc;
86 (void) divisor;
87 (void) remainder;
88 return 0;
89 }
90
91
92 Bool
93 glXWaitForMscOML(Display * dpy, GLXDrawable drawable,
94 int64_t target_msc, int64_t divisor,
95 int64_t remainder, int64_t * ust,
96 int64_t * msc, int64_t * sbc)
97 {
98 (void) dpy;
99 (void) drawable;
100 (void) target_msc;
101 (void) divisor;
102 (void) remainder;
103 (void) ust;
104 (void) msc;
105 (void) sbc;
106 return False;
107 }
108
109
110 Bool
111 glXWaitForSbcOML(Display * dpy, GLXDrawable drawable,
112 int64_t target_sbc, int64_t * ust,
113 int64_t * msc, int64_t * sbc)
114 {
115 (void) dpy;
116 (void) drawable;
117 (void) target_sbc;
118 (void) ust;
119 (void) msc;
120 (void) sbc;
121 return False;
122 }
123
124
125 Bool
126 glXReleaseBuffersMESA(Display * dpy, GLXDrawable d)
127 {
128 (void) dpy;
129 (void) d;
130 return False;
131 }
132
133
134 _X_EXPORT GLXPixmap
135 glXCreateGLXPixmapMESA(Display * dpy, XVisualInfo * visual,
136 Pixmap pixmap, Colormap cmap)
137 {
138 (void) dpy;
139 (void) visual;
140 (void) pixmap;
141 (void) cmap;
142 return 0;
143 }
144
145
146 /**
147 * GLX_MESA_copy_sub_buffer
148 */
149 void
150 glXCopySubBufferMESA(Display * dpy, GLXDrawable drawable,
151 int x, int y, int width, int height)
152 {
153 (void) dpy;
154 (void) drawable;
155 (void) x;
156 (void) y;
157 (void) width;
158 (void) height;
159 }
160
161
162 _X_EXPORT int
163 glXQueryGLXPbufferSGIX(Display * dpy, GLXDrawable drawable,
164 int attribute, unsigned int *value)
165 {
166 (void) dpy;
167 (void) drawable;
168 (void) attribute;
169 (void) value;
170 return 0;
171 }
172
173 _X_EXPORT GLXDrawable
174 glXCreateGLXPbufferSGIX(Display * dpy, GLXFBConfig config,
175 unsigned int width, unsigned int height,
176 int *attrib_list)
177 {
178 (void) dpy;
179 (void) config;
180 (void) width;
181 (void) height;
182 (void) attrib_list;
183 return None;
184 }
185
186 #if 0
187 /* GLX_SGIX_fbconfig */
188 _X_EXPORT int
189 glXGetFBConfigAttribSGIX(Display * dpy, void *config, int a, int *b)
190 {
191 (void) dpy;
192 (void) config;
193 (void) a;
194 (void) b;
195 return 0;
196 }
197
198 _X_EXPORT void *
199 glXChooseFBConfigSGIX(Display * dpy, int a, int *b, int *c)
200 {
201 (void) dpy;
202 (void) a;
203 (void) b;
204 (void) c;
205 return NULL;
206 }
207
208 _X_EXPORT GLXPixmap
209 glXCreateGLXPixmapWithConfigSGIX(Display * dpy, void *config, Pixmap p)
210 {
211 (void) dpy;
212 (void) config;
213 (void) p;
214 return None;
215 }
216
217 _X_EXPORT GLXContext
218 glXCreateContextWithConfigSGIX(Display * dpy, void *config, int a,
219 GLXContext b, Bool c)
220 {
221 (void) dpy;
222 (void) config;
223 (void) a;
224 (void) b;
225 (void) c;
226 return NULL;
227 }
228
229 _X_EXPORT XVisualInfo *
230 glXGetVisualFromFBConfigSGIX(Display * dpy, void *config)
231 {
232 (void) dpy;
233 (void) config;
234 return NULL;
235 }
236
237 _X_EXPORT void *
238 glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
239 {
240 (void) dpy;
241 (void) visinfo;
242 return NULL;
243 }
244 #endif