diff options
author | Ian Romanick <idr@us.ibm.com> | 2006-01-12 00:21:59 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2006-01-12 00:21:59 +0000 |
commit | 847d83ec3c90c5b298eaf19ba55251b4a30f4155 (patch) | |
tree | 92ad2d46a7d304e5c6362a79d571642bbb94d223 /GL/glx/glxcmdsswap.c | |
parent | c56e9a8849ce8dd5c09732ae1860e409e7886690 (diff) |
Bug #2996: libglx / libGLcore should use a dispatch table
Port all changes from the (monolithic) accelerated_indirect-0-0-1 branch to
the modular trunk. This will break the Darwin and cygwin builds. Other
than the changes to symlink-mesa.sh and the various Makefile.am files,
to code is identical to what's in the branch.
Reviewed by: airlied, krh
Diffstat (limited to 'GL/glx/glxcmdsswap.c')
-rw-r--r-- | GL/glx/glxcmdsswap.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/GL/glx/glxcmdsswap.c b/GL/glx/glxcmdsswap.c index 595e814e5..5729cf851 100644 --- a/GL/glx/glxcmdsswap.c +++ b/GL/glx/glxcmdsswap.c @@ -50,6 +50,10 @@ #include <windowstr.h> #include "glxext.h" #include "GL/glx_ansic.h" +#include "glapitable.h" +#include "glapi.h" +#include "glthread.h" +#include "dispatch.h" static int __glXSwapGetFBConfigsSGIX(__GLXclientState *cl, GLbyte *pc); static int __glXSwapCreateContextWithConfigSGIX(__GLXclientState *cl, GLbyte *pc); @@ -813,12 +817,12 @@ int __glXSwapVendorPrivate(__GLXclientState *cl, GLbyte *pc) case X_GLvop_SampleMaskSGIS: __GLX_SWAP_FLOAT(pc + 4); __GLX_SWAP_INT(pc + 8); - glSampleMaskSGIS(*(GLfloat *)(pc + 4), - *(GLboolean *)(pc + 8)); + CALL_SampleMaskSGIS( GET_DISPATCH(), + (*(GLfloat *)(pc + 4), *(GLboolean *)(pc + 8)) ); return Success; case X_GLvop_SamplePatternSGIS: __GLX_SWAP_INT(pc + 4); - glSamplePatternSGIS( *(GLenum *)(pc + 4)); + CALL_SamplePatternSGIS( GET_DISPATCH(), (*(GLenum *)(pc + 4)) ); return Success; } #endif |