diff options
Diffstat (limited to 'xorg-server/glx/indirect_dispatch.c')
-rw-r--r-- | xorg-server/glx/indirect_dispatch.c | 253 |
1 files changed, 150 insertions, 103 deletions
diff --git a/xorg-server/glx/indirect_dispatch.c b/xorg-server/glx/indirect_dispatch.c index ecd2bc8de..8083deed9 100644 --- a/xorg-server/glx/indirect_dispatch.c +++ b/xorg-server/glx/indirect_dispatch.c @@ -24,6 +24,13 @@ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ +#ifdef HAVE_DIX_CONFIG_H +#include <dix-config.h> +#else + +#include "glheader.h" + +#endif #include <X11/Xmd.h> #include <GL/gl.h> @@ -56,7 +63,7 @@ int __glXDisp_NewList(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -74,7 +81,7 @@ int __glXDisp_EndList(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -98,6 +105,8 @@ void __glXDisp_CallLists(GLbyte * pc) const GLenum type = *(GLenum *)(pc + 4); const GLvoid * lists = (const GLvoid *)(pc + 8); + lists = (const GLvoid *) (pc + 8); + CALL_CallLists( GET_DISPATCH(), ( n, type, @@ -109,7 +118,7 @@ int __glXDisp_DeleteLists(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -127,7 +136,7 @@ int __glXDisp_GenLists(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -158,7 +167,7 @@ void __glXDisp_Begin(GLbyte * pc) void __glXDisp_Bitmap(GLbyte * pc) { - const GLubyte * const bitmap = (const GLubyte *) (pc + 44); + const GLubyte * const bitmap = (const GLubyte *) ((pc + 44)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_LSB_FIRST, hdr->lsbFirst) ); @@ -1035,7 +1044,7 @@ void __glXDisp_PolygonMode(GLbyte * pc) void __glXDisp_PolygonStipple(GLbyte * pc) { - const GLubyte * const mask = (const GLubyte *) (pc + 20); + const GLubyte * const mask = (const GLubyte *) ((pc + 20)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_LSB_FIRST, hdr->lsbFirst) ); @@ -1114,7 +1123,7 @@ void __glXDisp_TexParameteriv(GLbyte * pc) void __glXDisp_TexImage1D(GLbyte * pc) { - const GLvoid * const pixels = (const GLvoid *) (pc + 52); + const GLvoid * const pixels = (const GLvoid *) ((pc + 52)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -1138,7 +1147,7 @@ void __glXDisp_TexImage1D(GLbyte * pc) void __glXDisp_TexImage2D(GLbyte * pc) { - const GLvoid * const pixels = (const GLvoid *) (pc + 52); + const GLvoid * const pixels = (const GLvoid *) ((pc + 52)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -1659,7 +1668,7 @@ int __glXDisp_PixelStoref(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1677,7 +1686,7 @@ int __glXDisp_PixelStorei(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1744,7 +1753,7 @@ void __glXDisp_CopyPixels(GLbyte * pc) void __glXDisp_DrawPixels(GLbyte * pc) { - const GLvoid * const pixels = (const GLvoid *) (pc + 36); + const GLvoid * const pixels = (const GLvoid *) ((pc + 36)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -1767,7 +1776,7 @@ int __glXDisp_GetBooleanv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1795,7 +1804,7 @@ int __glXDisp_GetClipPlane(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1815,7 +1824,7 @@ int __glXDisp_GetDoublev(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1843,7 +1852,7 @@ int __glXDisp_GetError(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1860,7 +1869,7 @@ int __glXDisp_GetFloatv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1888,7 +1897,7 @@ int __glXDisp_GetIntegerv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1916,7 +1925,7 @@ int __glXDisp_GetLightfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1945,7 +1954,7 @@ int __glXDisp_GetLightiv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -1974,7 +1983,7 @@ int __glXDisp_GetMapdv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2004,7 +2013,7 @@ int __glXDisp_GetMapfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2034,7 +2043,7 @@ int __glXDisp_GetMapiv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2064,7 +2073,7 @@ int __glXDisp_GetMaterialfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2093,7 +2102,7 @@ int __glXDisp_GetMaterialiv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2122,7 +2131,7 @@ int __glXDisp_GetPixelMapfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2150,7 +2159,7 @@ int __glXDisp_GetPixelMapuiv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2178,7 +2187,7 @@ int __glXDisp_GetPixelMapusv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2206,7 +2215,7 @@ int __glXDisp_GetTexEnvfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2235,7 +2244,7 @@ int __glXDisp_GetTexEnviv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2264,7 +2273,7 @@ int __glXDisp_GetTexGendv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2293,7 +2302,7 @@ int __glXDisp_GetTexGenfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2322,7 +2331,7 @@ int __glXDisp_GetTexGeniv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2351,7 +2360,7 @@ int __glXDisp_GetTexParameterfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2380,7 +2389,7 @@ int __glXDisp_GetTexParameteriv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2409,7 +2418,7 @@ int __glXDisp_GetTexLevelParameterfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2439,7 +2448,7 @@ int __glXDisp_GetTexLevelParameteriv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2469,7 +2478,7 @@ int __glXDisp_IsEnabled(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2488,7 +2497,7 @@ int __glXDisp_IsList(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2734,7 +2743,7 @@ int __glXDisp_AreTexturesResident(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2759,7 +2768,7 @@ int __glXDisp_AreTexturesResidentEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -2837,7 +2846,7 @@ int __glXDisp_DeleteTextures(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2857,7 +2866,7 @@ int __glXDisp_DeleteTexturesEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -2877,7 +2886,7 @@ int __glXDisp_GenTextures(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2900,7 +2909,7 @@ int __glXDisp_GenTexturesEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -2923,7 +2932,7 @@ int __glXDisp_IsTexture(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -2942,7 +2951,7 @@ int __glXDisp_IsTextureEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -2970,7 +2979,7 @@ void __glXDisp_PrioritizeTextures(GLbyte * pc) void __glXDisp_TexSubImage1D(GLbyte * pc) { - const GLvoid * const pixels = (const GLvoid *) (pc + 56); + const GLvoid * const pixels = (const GLvoid *) ((pc + 56)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -2993,7 +3002,7 @@ void __glXDisp_TexSubImage1D(GLbyte * pc) void __glXDisp_TexSubImage2D(GLbyte * pc) { - const GLvoid * const pixels = (const GLvoid *) (pc + 56); + const GLvoid * const pixels = (const GLvoid *) ((pc + 56)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -3035,7 +3044,7 @@ void __glXDisp_BlendEquation(GLbyte * pc) void __glXDisp_ColorTable(GLbyte * pc) { - const GLvoid * const table = (const GLvoid *) (pc + 40); + const GLvoid * const table = (const GLvoid *) ((pc + 40)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -3098,7 +3107,7 @@ int __glXDisp_GetColorTableParameterfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3127,7 +3136,7 @@ int __glXDisp_GetColorTableParameterfvSGI(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3156,7 +3165,7 @@ int __glXDisp_GetColorTableParameteriv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3185,7 +3194,7 @@ int __glXDisp_GetColorTableParameterivSGI(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3212,7 +3221,7 @@ int __glXDisp_GetColorTableParameterivSGI(__GLXclientState *cl, GLbyte *pc) void __glXDisp_ColorSubTable(GLbyte * pc) { - const GLvoid * const data = (const GLvoid *) (pc + 40); + const GLvoid * const data = (const GLvoid *) ((pc + 40)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -3245,7 +3254,7 @@ void __glXDisp_CopyColorSubTable(GLbyte * pc) void __glXDisp_ConvolutionFilter1D(GLbyte * pc) { - const GLvoid * const image = (const GLvoid *) (pc + 44); + const GLvoid * const image = (const GLvoid *) ((pc + 44)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -3267,7 +3276,7 @@ void __glXDisp_ConvolutionFilter1D(GLbyte * pc) void __glXDisp_ConvolutionFilter2D(GLbyte * pc) { - const GLvoid * const image = (const GLvoid *) (pc + 44); + const GLvoid * const image = (const GLvoid *) ((pc + 44)); __GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -3361,7 +3370,7 @@ int __glXDisp_GetConvolutionParameterfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3390,7 +3399,7 @@ int __glXDisp_GetConvolutionParameterfvEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3419,7 +3428,7 @@ int __glXDisp_GetConvolutionParameteriv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3448,7 +3457,7 @@ int __glXDisp_GetConvolutionParameterivEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3477,7 +3486,7 @@ int __glXDisp_GetHistogramParameterfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3506,7 +3515,7 @@ int __glXDisp_GetHistogramParameterfvEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3535,7 +3544,7 @@ int __glXDisp_GetHistogramParameteriv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3564,7 +3573,7 @@ int __glXDisp_GetHistogramParameterivEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3593,7 +3602,7 @@ int __glXDisp_GetMinmaxParameterfv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3622,7 +3631,7 @@ int __glXDisp_GetMinmaxParameterfvEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3651,7 +3660,7 @@ int __glXDisp_GetMinmaxParameteriv(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -3680,7 +3689,7 @@ int __glXDisp_GetMinmaxParameterivEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -3769,7 +3778,7 @@ void __glXDisp_TexImage3D(GLbyte * pc) void __glXDisp_TexSubImage3D(GLbyte * pc) { - const GLvoid * const pixels = (const GLvoid *) (pc + 88); + const GLvoid * const pixels = (const GLvoid *) ((pc + 88)); __GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc); CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) ); @@ -4085,7 +4094,7 @@ int __glXDisp_GetProgramEnvParameterdvARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4106,7 +4115,7 @@ int __glXDisp_GetProgramEnvParameterfvARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4127,7 +4136,7 @@ int __glXDisp_GetProgramLocalParameterdvARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4148,7 +4157,7 @@ int __glXDisp_GetProgramLocalParameterfvARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4169,7 +4178,7 @@ int __glXDisp_GetProgramivARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4198,7 +4207,7 @@ int __glXDisp_GetVertexAttribdvARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4227,7 +4236,7 @@ int __glXDisp_GetVertexAttribfvARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4256,7 +4265,7 @@ int __glXDisp_GetVertexAttribivARB(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4567,7 +4576,7 @@ int __glXDisp_DeleteQueriesARB(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -4594,7 +4603,7 @@ int __glXDisp_GenQueriesARB(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -4617,7 +4626,7 @@ int __glXDisp_GetQueryObjectivARB(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -4646,7 +4655,7 @@ int __glXDisp_GetQueryObjectuivARB(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -4675,7 +4684,7 @@ int __glXDisp_GetQueryivARB(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -4704,7 +4713,7 @@ int __glXDisp_IsQueryARB(__GLXclientState *cl, GLbyte *pc) { xGLXSingleReq * const req = (xGLXSingleReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_SINGLE_HDR_SIZE; if ( cx != NULL ) { @@ -4729,6 +4738,17 @@ void __glXDisp_DrawBuffersARB(GLbyte * pc) ) ); } +void __glXDisp_RenderbufferStorageMultisample(GLbyte * pc) +{ + CALL_RenderbufferStorageMultisample( GET_DISPATCH(), ( + *(GLenum *)(pc + 0), + *(GLsizei *)(pc + 4), + *(GLenum *)(pc + 8), + *(GLsizei *)(pc + 12), + *(GLsizei *)(pc + 16) + ) ); +} + void __glXDisp_SampleMaskSGIS(GLbyte * pc) { CALL_SampleMaskSGIS( GET_DISPATCH(), ( @@ -4870,7 +4890,7 @@ int __glXDisp_AreProgramsResidentNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4903,7 +4923,7 @@ int __glXDisp_DeleteProgramsNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4932,7 +4952,7 @@ int __glXDisp_GenProgramsNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4955,7 +4975,7 @@ int __glXDisp_GetProgramParameterdvNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4977,7 +4997,7 @@ int __glXDisp_GetProgramParameterfvNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -4999,7 +5019,7 @@ int __glXDisp_GetProgramivNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5028,7 +5048,7 @@ int __glXDisp_GetTrackMatrixivNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5050,7 +5070,7 @@ int __glXDisp_GetVertexAttribdvNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5079,7 +5099,7 @@ int __glXDisp_GetVertexAttribfvNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5108,7 +5128,7 @@ int __glXDisp_GetVertexAttribivNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5137,7 +5157,7 @@ int __glXDisp_IsProgramNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5555,7 +5575,7 @@ int __glXDisp_GetProgramNamedParameterdvNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5579,7 +5599,7 @@ int __glXDisp_GetProgramNamedParameterfvNV(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5659,7 +5679,7 @@ int __glXDisp_CheckFramebufferStatusEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5742,7 +5762,7 @@ int __glXDisp_GenFramebuffersEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5765,7 +5785,7 @@ int __glXDisp_GenRenderbuffersEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5795,7 +5815,7 @@ int __glXDisp_GetFramebufferAttachmentParameterivEXT(__GLXclientState *cl, GLbyt { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5817,7 +5837,7 @@ int __glXDisp_GetRenderbufferParameterivEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5838,7 +5858,7 @@ int __glXDisp_IsFramebufferEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5857,7 +5877,7 @@ int __glXDisp_IsRenderbufferEXT(__GLXclientState *cl, GLbyte *pc) { xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc; int error; - __GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error); + struct glx_context * const cx = __glXForceCurrent(cl, req->contextTag, &error); pc += __GLX_VENDPRIV_HDR_SIZE; if ( cx != NULL ) { @@ -5882,3 +5902,30 @@ void __glXDisp_RenderbufferStorageEXT(GLbyte * pc) ) ); } +void __glXDisp_BlitFramebufferEXT(GLbyte * pc) +{ + CALL_BlitFramebufferEXT( GET_DISPATCH(), ( + *(GLint *)(pc + 0), + *(GLint *)(pc + 4), + *(GLint *)(pc + 8), + *(GLint *)(pc + 12), + *(GLint *)(pc + 16), + *(GLint *)(pc + 20), + *(GLint *)(pc + 24), + *(GLint *)(pc + 28), + *(GLbitfield *)(pc + 32), + *(GLenum *)(pc + 36) + ) ); +} + +void __glXDisp_FramebufferTextureLayerEXT(GLbyte * pc) +{ + CALL_FramebufferTextureLayerEXT( GET_DISPATCH(), ( + *(GLenum *)(pc + 0), + *(GLenum *)(pc + 4), + *(GLuint *)(pc + 8), + *(GLint *)(pc + 12), + *(GLint *)(pc + 16) + ) ); +} + |