diff options
author | marha <marha@users.sourceforge.net> | 2013-10-31 08:40:01 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-10-31 08:40:01 +0100 |
commit | e4ef724e06621be9325fc41ed886fd404467fdc0 (patch) | |
tree | be445314647f682fbb4a1e8b94aeb6ee79cede5f /xorg-server/glx/glxstubs.c | |
parent | 270d3a1aa4137dc15d7b7e5a0958cc8c0bef9a1a (diff) | |
download | vcxsrv-e4ef724e06621be9325fc41ed886fd404467fdc0.tar.gz vcxsrv-e4ef724e06621be9325fc41ed886fd404467fdc0.tar.bz2 vcxsrv-e4ef724e06621be9325fc41ed886fd404467fdc0.zip |
fontconfig glproto libX11 mesa xserver xkeyboard-config git update 31 oct 2013
xserver commit 902ff0b3497d202b86bf9a411e17db7b694d6eaa
xkeyboard-config commit 70bbf18d6cddb7271db1b2e042765ace3c4ac485
libX11 commit 6cb02b166361200da35ba14f52cd9aaa493eb0ea
glproto commit aacc7a51b6161c765b04524e0d2ab31e5e586834
fontconfig commit 525a135ccf53e4bf3363c3143d9cfdf15fba55ab
mesa commit b16b3c8703f198ca0f025b730d582600df79c19c
Diffstat (limited to 'xorg-server/glx/glxstubs.c')
-rw-r--r-- | xorg-server/glx/glxstubs.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/xorg-server/glx/glxstubs.c b/xorg-server/glx/glxstubs.c new file mode 100644 index 000000000..69bc00480 --- /dev/null +++ b/xorg-server/glx/glxstubs.c @@ -0,0 +1,50 @@ +/* + * Copyright © 2013 Red Hat, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + * Adam Jackson <ajax@redhat.com> + */ + +/* + * Redirection stubs for things that we call by name but that aren't exported + * from libGL by name. Strictly speaking this list should be a lot longer, + * but this is enough to get us linking against contemporary Mesa. + */ + +#include <inttypes.h> +#include "glxserver.h" + +#define thunk(name, type, call_args, ...) \ + _X_HIDDEN void name(__VA_ARGS__) { \ + static type proc; \ + if (!proc) proc = __glGetProcAddress(#name); \ + proc call_args; \ + } + +thunk(glSampleMaskSGIS, PFNGLSAMPLEMASKSGISPROC, + (value, invert), GLclampf value, GLboolean invert) + +thunk(glSamplePatternSGIS, PFNGLSAMPLEPATTERNSGISPROC, + (pattern), GLenum pattern) + +thunk(glActiveStencilFaceEXT, PFNGLACTIVESTENCILFACEEXTPROC, + (face), GLenum face) |