diff options
Diffstat (limited to 'xorg-server/glx/indirect_reqsize.c')
-rw-r--r-- | xorg-server/glx/indirect_reqsize.c | 434 |
1 files changed, 222 insertions, 212 deletions
diff --git a/xorg-server/glx/indirect_reqsize.c b/xorg-server/glx/indirect_reqsize.c index 86ea9700f..691055186 100644 --- a/xorg-server/glx/indirect_reqsize.c +++ b/xorg-server/glx/indirect_reqsize.c @@ -25,6 +25,15 @@ * SOFTWARE. */ + +#ifdef HAVE_DIX_CONFIG_H +#include <dix-config.h> +#else + +#include "glheader.h" + +#endif + #include <GL/gl.h> #include "glxserver.h" #include "glxbyteorder.h" @@ -34,24 +43,25 @@ #define __GLX_PAD(x) (((x) + 3) & ~3) #if defined(__CYGWIN__) || defined(__MINGW32__) -#undef HAVE_ALIAS +# undef HAVE_ALIAS #endif #ifdef HAVE_ALIAS -#define ALIAS2(from,to) \ +# define ALIAS2(from,to) \ GLint __glX ## from ## ReqSize( const GLbyte * pc, Bool swap ) \ __attribute__ ((alias( # to ))); -#define ALIAS(from,to) ALIAS2( from, __glX ## to ## ReqSize ) +# define ALIAS(from,to) ALIAS2( from, __glX ## to ## ReqSize ) #else -#define ALIAS(from,to) \ +# define ALIAS(from,to) \ GLint __glX ## from ## ReqSize( const GLbyte * pc, Bool swap ) \ { return __glX ## to ## ReqSize( pc, swap ); } #endif + int -__glXCallListsReqSize(const GLbyte * pc, Bool swap) +__glXCallListsReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 0); - GLenum type = *(GLenum *) (pc + 4); +GLsizei n = *(GLsizei *)(pc + 0); +GLenum type = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -64,15 +74,15 @@ __glXCallListsReqSize(const GLbyte * pc, Bool swap) } int -__glXBitmapReqSize(const GLbyte * pc, Bool swap) +__glXBitmapReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLsizei width = *(GLsizei *) (pc + 20); - GLsizei height = *(GLsizei *) (pc + 24); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLsizei width = *(GLsizei *)(pc + 20); +GLsizei height = *(GLsizei *)(pc + 24); if (swap) { row_length = bswap_32(row_length); @@ -88,9 +98,9 @@ __glXBitmapReqSize(const GLbyte * pc, Bool swap) } int -__glXFogfvReqSize(const GLbyte * pc, Bool swap) +__glXFogfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 0); +GLenum pname = * (GLenum *)(pc + 0); GLsizei compsize; if (swap) { @@ -102,9 +112,9 @@ __glXFogfvReqSize(const GLbyte * pc, Bool swap) } int -__glXLightfvReqSize(const GLbyte * pc, Bool swap) +__glXLightfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -116,9 +126,9 @@ __glXLightfvReqSize(const GLbyte * pc, Bool swap) } int -__glXLightModelfvReqSize(const GLbyte * pc, Bool swap) +__glXLightModelfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 0); +GLenum pname = * (GLenum *)(pc + 0); GLsizei compsize; if (swap) { @@ -130,9 +140,9 @@ __glXLightModelfvReqSize(const GLbyte * pc, Bool swap) } int -__glXMaterialfvReqSize(const GLbyte * pc, Bool swap) +__glXMaterialfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -144,13 +154,13 @@ __glXMaterialfvReqSize(const GLbyte * pc, Bool swap) } int -__glXPolygonStippleReqSize(const GLbyte * pc, Bool swap) +__glXPolygonStippleReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); if (swap) { row_length = bswap_32(row_length); @@ -164,9 +174,9 @@ __glXPolygonStippleReqSize(const GLbyte * pc, Bool swap) } int -__glXTexParameterfvReqSize(const GLbyte * pc, Bool swap) +__glXTexParameterfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -178,17 +188,17 @@ __glXTexParameterfvReqSize(const GLbyte * pc, Bool swap) } int -__glXTexImage1DReqSize(const GLbyte * pc, Bool swap) +__glXTexImage1DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei width = *(GLsizei *) (pc + 32); - GLenum format = *(GLenum *) (pc + 44); - GLenum type = *(GLenum *) (pc + 48); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei width = *(GLsizei *)(pc + 32); +GLenum format = * (GLenum *)(pc + 44); +GLenum type = * (GLenum *)(pc + 48); if (swap) { row_length = bswap_32(row_length); @@ -206,18 +216,18 @@ __glXTexImage1DReqSize(const GLbyte * pc, Bool swap) } int -__glXTexImage2DReqSize(const GLbyte * pc, Bool swap) +__glXTexImage2DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei width = *(GLsizei *) (pc + 32); - GLsizei height = *(GLsizei *) (pc + 36); - GLenum format = *(GLenum *) (pc + 44); - GLenum type = *(GLenum *) (pc + 48); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei width = *(GLsizei *)(pc + 32); +GLsizei height = *(GLsizei *)(pc + 36); +GLenum format = * (GLenum *)(pc + 44); +GLenum type = * (GLenum *)(pc + 48); if (swap) { row_length = bswap_32(row_length); @@ -236,9 +246,9 @@ __glXTexImage2DReqSize(const GLbyte * pc, Bool swap) } int -__glXTexEnvfvReqSize(const GLbyte * pc, Bool swap) +__glXTexEnvfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -250,9 +260,9 @@ __glXTexEnvfvReqSize(const GLbyte * pc, Bool swap) } int -__glXTexGendvReqSize(const GLbyte * pc, Bool swap) +__glXTexGendvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -264,9 +274,9 @@ __glXTexGendvReqSize(const GLbyte * pc, Bool swap) } int -__glXTexGenfvReqSize(const GLbyte * pc, Bool swap) +__glXTexGenfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -278,9 +288,9 @@ __glXTexGenfvReqSize(const GLbyte * pc, Bool swap) } int -__glXPixelMapfvReqSize(const GLbyte * pc, Bool swap) +__glXPixelMapfvReqSize( const GLbyte * pc, Bool swap ) { - GLsizei mapsize = *(GLsizei *) (pc + 4); +GLsizei mapsize = *(GLsizei *)(pc + 4); if (swap) { mapsize = bswap_32(mapsize); @@ -290,9 +300,9 @@ __glXPixelMapfvReqSize(const GLbyte * pc, Bool swap) } int -__glXPixelMapusvReqSize(const GLbyte * pc, Bool swap) +__glXPixelMapusvReqSize( const GLbyte * pc, Bool swap ) { - GLsizei mapsize = *(GLsizei *) (pc + 4); +GLsizei mapsize = *(GLsizei *)(pc + 4); if (swap) { mapsize = bswap_32(mapsize); @@ -302,17 +312,17 @@ __glXPixelMapusvReqSize(const GLbyte * pc, Bool swap) } int -__glXDrawPixelsReqSize(const GLbyte * pc, Bool swap) +__glXDrawPixelsReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLsizei width = *(GLsizei *) (pc + 20); - GLsizei height = *(GLsizei *) (pc + 24); - GLenum format = *(GLenum *) (pc + 28); - GLenum type = *(GLenum *) (pc + 32); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLsizei width = *(GLsizei *)(pc + 20); +GLsizei height = *(GLsizei *)(pc + 24); +GLenum format = * (GLenum *)(pc + 28); +GLenum type = * (GLenum *)(pc + 32); if (swap) { row_length = bswap_32(row_length); @@ -330,9 +340,9 @@ __glXDrawPixelsReqSize(const GLbyte * pc, Bool swap) } int -__glXPrioritizeTexturesReqSize(const GLbyte * pc, Bool swap) +__glXPrioritizeTexturesReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 0); +GLsizei n = *(GLsizei *)(pc + 0); if (swap) { n = bswap_32(n); @@ -342,17 +352,17 @@ __glXPrioritizeTexturesReqSize(const GLbyte * pc, Bool swap) } int -__glXTexSubImage1DReqSize(const GLbyte * pc, Bool swap) +__glXTexSubImage1DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei width = *(GLsizei *) (pc + 36); - GLenum format = *(GLenum *) (pc + 44); - GLenum type = *(GLenum *) (pc + 48); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei width = *(GLsizei *)(pc + 36); +GLenum format = * (GLenum *)(pc + 44); +GLenum type = * (GLenum *)(pc + 48); if (swap) { row_length = bswap_32(row_length); @@ -370,18 +380,18 @@ __glXTexSubImage1DReqSize(const GLbyte * pc, Bool swap) } int -__glXTexSubImage2DReqSize(const GLbyte * pc, Bool swap) +__glXTexSubImage2DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei width = *(GLsizei *) (pc + 36); - GLsizei height = *(GLsizei *) (pc + 40); - GLenum format = *(GLenum *) (pc + 44); - GLenum type = *(GLenum *) (pc + 48); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei width = *(GLsizei *)(pc + 36); +GLsizei height = *(GLsizei *)(pc + 40); +GLenum format = * (GLenum *)(pc + 44); +GLenum type = * (GLenum *)(pc + 48); if (swap) { row_length = bswap_32(row_length); @@ -400,17 +410,17 @@ __glXTexSubImage2DReqSize(const GLbyte * pc, Bool swap) } int -__glXColorTableReqSize(const GLbyte * pc, Bool swap) +__glXColorTableReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei width = *(GLsizei *) (pc + 28); - GLenum format = *(GLenum *) (pc + 32); - GLenum type = *(GLenum *) (pc + 36); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei width = *(GLsizei *)(pc + 28); +GLenum format = * (GLenum *)(pc + 32); +GLenum type = * (GLenum *)(pc + 36); if (swap) { row_length = bswap_32(row_length); @@ -428,9 +438,9 @@ __glXColorTableReqSize(const GLbyte * pc, Bool swap) } int -__glXColorTableParameterfvReqSize(const GLbyte * pc, Bool swap) +__glXColorTableParameterfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -442,17 +452,17 @@ __glXColorTableParameterfvReqSize(const GLbyte * pc, Bool swap) } int -__glXColorSubTableReqSize(const GLbyte * pc, Bool swap) +__glXColorSubTableReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei count = *(GLsizei *) (pc + 28); - GLenum format = *(GLenum *) (pc + 32); - GLenum type = *(GLenum *) (pc + 36); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei count = *(GLsizei *)(pc + 28); +GLenum format = * (GLenum *)(pc + 32); +GLenum type = * (GLenum *)(pc + 36); if (swap) { row_length = bswap_32(row_length); @@ -470,17 +480,17 @@ __glXColorSubTableReqSize(const GLbyte * pc, Bool swap) } int -__glXConvolutionFilter1DReqSize(const GLbyte * pc, Bool swap) +__glXConvolutionFilter1DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei width = *(GLsizei *) (pc + 28); - GLenum format = *(GLenum *) (pc + 36); - GLenum type = *(GLenum *) (pc + 40); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei width = *(GLsizei *)(pc + 28); +GLenum format = * (GLenum *)(pc + 36); +GLenum type = * (GLenum *)(pc + 40); if (swap) { row_length = bswap_32(row_length); @@ -498,18 +508,18 @@ __glXConvolutionFilter1DReqSize(const GLbyte * pc, Bool swap) } int -__glXConvolutionFilter2DReqSize(const GLbyte * pc, Bool swap) +__glXConvolutionFilter2DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); + GLint row_length = * (GLint *)(pc + 4); GLint image_height = 0; - GLint skip_images = 0; - GLint skip_rows = *(GLint *) (pc + 8); - GLint alignment = *(GLint *) (pc + 16); - GLenum target = *(GLenum *) (pc + 20); - GLsizei width = *(GLsizei *) (pc + 28); - GLsizei height = *(GLsizei *) (pc + 32); - GLenum format = *(GLenum *) (pc + 36); - GLenum type = *(GLenum *) (pc + 40); + GLint skip_images = 0; + GLint skip_rows = * (GLint *)(pc + 8); + GLint alignment = * (GLint *)(pc + 16); +GLenum target = * (GLenum *)(pc + 20); +GLsizei width = *(GLsizei *)(pc + 28); +GLsizei height = *(GLsizei *)(pc + 32); +GLenum format = * (GLenum *)(pc + 36); +GLenum type = * (GLenum *)(pc + 40); if (swap) { row_length = bswap_32(row_length); @@ -528,9 +538,9 @@ __glXConvolutionFilter2DReqSize(const GLbyte * pc, Bool swap) } int -__glXConvolutionParameterfvReqSize(const GLbyte * pc, Bool swap) +__glXConvolutionParameterfvReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 4); +GLenum pname = * (GLenum *)(pc + 4); GLsizei compsize; if (swap) { @@ -542,19 +552,19 @@ __glXConvolutionParameterfvReqSize(const GLbyte * pc, Bool swap) } int -__glXTexImage3DReqSize(const GLbyte * pc, Bool swap) +__glXTexImage3DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); - GLint image_height = *(GLint *) (pc + 8); - GLint skip_rows = *(GLint *) (pc + 16); - GLint skip_images = *(GLint *) (pc + 20); - GLint alignment = *(GLint *) (pc + 32); - GLenum target = *(GLenum *) (pc + 36); - GLsizei width = *(GLsizei *) (pc + 48); - GLsizei height = *(GLsizei *) (pc + 52); - GLsizei depth = *(GLsizei *) (pc + 56); - GLenum format = *(GLenum *) (pc + 68); - GLenum type = *(GLenum *) (pc + 72); + GLint row_length = * (GLint *)(pc + 4); + GLint image_height = * (GLint *)(pc + 8); + GLint skip_rows = * (GLint *)(pc + 16); + GLint skip_images = * (GLint *)(pc + 20); + GLint alignment = * (GLint *)(pc + 32); +GLenum target = * (GLenum *)(pc + 36); +GLsizei width = *(GLsizei *)(pc + 48); +GLsizei height = *(GLsizei *)(pc + 52); +GLsizei depth = *(GLsizei *)(pc + 56); +GLenum format = * (GLenum *)(pc + 68); +GLenum type = * (GLenum *)(pc + 72); if (swap) { row_length = bswap_32(row_length); @@ -570,8 +580,8 @@ __glXTexImage3DReqSize(const GLbyte * pc, Bool swap) type = bswap_32(type); } - if (*(CARD32 *) (pc + 76)) - return 0; + if (*(CARD32 *) (pc + 76)) + return 0; return __glXImageSize(format, type, target, width, height, depth, image_height, row_length, skip_images, @@ -579,19 +589,19 @@ __glXTexImage3DReqSize(const GLbyte * pc, Bool swap) } int -__glXTexSubImage3DReqSize(const GLbyte * pc, Bool swap) +__glXTexSubImage3DReqSize( const GLbyte * pc, Bool swap ) { - GLint row_length = *(GLint *) (pc + 4); - GLint image_height = *(GLint *) (pc + 8); - GLint skip_rows = *(GLint *) (pc + 16); - GLint skip_images = *(GLint *) (pc + 20); - GLint alignment = *(GLint *) (pc + 32); - GLenum target = *(GLenum *) (pc + 36); - GLsizei width = *(GLsizei *) (pc + 60); - GLsizei height = *(GLsizei *) (pc + 64); - GLsizei depth = *(GLsizei *) (pc + 68); - GLenum format = *(GLenum *) (pc + 76); - GLenum type = *(GLenum *) (pc + 80); + GLint row_length = * (GLint *)(pc + 4); + GLint image_height = * (GLint *)(pc + 8); + GLint skip_rows = * (GLint *)(pc + 16); + GLint skip_images = * (GLint *)(pc + 20); + GLint alignment = * (GLint *)(pc + 32); +GLenum target = * (GLenum *)(pc + 36); +GLsizei width = *(GLsizei *)(pc + 60); +GLsizei height = *(GLsizei *)(pc + 64); +GLsizei depth = *(GLsizei *)(pc + 68); +GLenum format = * (GLenum *)(pc + 76); +GLenum type = * (GLenum *)(pc + 80); if (swap) { row_length = bswap_32(row_length); @@ -613,9 +623,9 @@ __glXTexSubImage3DReqSize(const GLbyte * pc, Bool swap) } int -__glXCompressedTexImage1DARBReqSize(const GLbyte * pc, Bool swap) +__glXCompressedTexImage1DARBReqSize( const GLbyte * pc, Bool swap ) { - GLsizei imageSize = *(GLsizei *) (pc + 20); +GLsizei imageSize = *(GLsizei *)(pc + 20); if (swap) { imageSize = bswap_32(imageSize); @@ -625,9 +635,9 @@ __glXCompressedTexImage1DARBReqSize(const GLbyte * pc, Bool swap) } int -__glXCompressedTexImage2DARBReqSize(const GLbyte * pc, Bool swap) +__glXCompressedTexImage2DARBReqSize( const GLbyte * pc, Bool swap ) { - GLsizei imageSize = *(GLsizei *) (pc + 24); +GLsizei imageSize = *(GLsizei *)(pc + 24); if (swap) { imageSize = bswap_32(imageSize); @@ -637,9 +647,9 @@ __glXCompressedTexImage2DARBReqSize(const GLbyte * pc, Bool swap) } int -__glXCompressedTexImage3DARBReqSize(const GLbyte * pc, Bool swap) +__glXCompressedTexImage3DARBReqSize( const GLbyte * pc, Bool swap ) { - GLsizei imageSize = *(GLsizei *) (pc + 28); +GLsizei imageSize = *(GLsizei *)(pc + 28); if (swap) { imageSize = bswap_32(imageSize); @@ -649,9 +659,9 @@ __glXCompressedTexImage3DARBReqSize(const GLbyte * pc, Bool swap) } int -__glXCompressedTexSubImage3DARBReqSize(const GLbyte * pc, Bool swap) +__glXCompressedTexSubImage3DARBReqSize( const GLbyte * pc, Bool swap ) { - GLsizei imageSize = *(GLsizei *) (pc + 36); +GLsizei imageSize = *(GLsizei *)(pc + 36); if (swap) { imageSize = bswap_32(imageSize); @@ -661,9 +671,9 @@ __glXCompressedTexSubImage3DARBReqSize(const GLbyte * pc, Bool swap) } int -__glXProgramStringARBReqSize(const GLbyte * pc, Bool swap) +__glXProgramStringARBReqSize( const GLbyte * pc, Bool swap ) { - GLsizei len = *(GLsizei *) (pc + 8); +GLsizei len = *(GLsizei *)(pc + 8); if (swap) { len = bswap_32(len); @@ -673,9 +683,9 @@ __glXProgramStringARBReqSize(const GLbyte * pc, Bool swap) } int -__glXDrawBuffersARBReqSize(const GLbyte * pc, Bool swap) +__glXDrawBuffersARBReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 0); +GLsizei n = *(GLsizei *)(pc + 0); if (swap) { n = bswap_32(n); @@ -685,9 +695,9 @@ __glXDrawBuffersARBReqSize(const GLbyte * pc, Bool swap) } int -__glXPointParameterfvEXTReqSize(const GLbyte * pc, Bool swap) +__glXPointParameterfvEXTReqSize( const GLbyte * pc, Bool swap ) { - GLenum pname = *(GLenum *) (pc + 0); +GLenum pname = * (GLenum *)(pc + 0); GLsizei compsize; if (swap) { @@ -699,9 +709,9 @@ __glXPointParameterfvEXTReqSize(const GLbyte * pc, Bool swap) } int -__glXProgramParameters4dvNVReqSize(const GLbyte * pc, Bool swap) +__glXProgramParameters4dvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei num = *(GLsizei *) (pc + 8); +GLsizei num = *(GLsizei *)(pc + 8); if (swap) { num = bswap_32(num); @@ -711,9 +721,9 @@ __glXProgramParameters4dvNVReqSize(const GLbyte * pc, Bool swap) } int -__glXProgramParameters4fvNVReqSize(const GLbyte * pc, Bool swap) +__glXProgramParameters4fvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei num = *(GLsizei *) (pc + 8); +GLsizei num = *(GLsizei *)(pc + 8); if (swap) { num = bswap_32(num); @@ -723,9 +733,9 @@ __glXProgramParameters4fvNVReqSize(const GLbyte * pc, Bool swap) } int -__glXVertexAttribs1dvNVReqSize(const GLbyte * pc, Bool swap) +__glXVertexAttribs1dvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 4); +GLsizei n = *(GLsizei *)(pc + 4); if (swap) { n = bswap_32(n); @@ -735,9 +745,9 @@ __glXVertexAttribs1dvNVReqSize(const GLbyte * pc, Bool swap) } int -__glXVertexAttribs2dvNVReqSize(const GLbyte * pc, Bool swap) +__glXVertexAttribs2dvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 4); +GLsizei n = *(GLsizei *)(pc + 4); if (swap) { n = bswap_32(n); @@ -747,9 +757,9 @@ __glXVertexAttribs2dvNVReqSize(const GLbyte * pc, Bool swap) } int -__glXVertexAttribs3dvNVReqSize(const GLbyte * pc, Bool swap) +__glXVertexAttribs3dvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 4); +GLsizei n = *(GLsizei *)(pc + 4); if (swap) { n = bswap_32(n); @@ -759,9 +769,9 @@ __glXVertexAttribs3dvNVReqSize(const GLbyte * pc, Bool swap) } int -__glXVertexAttribs3fvNVReqSize(const GLbyte * pc, Bool swap) +__glXVertexAttribs3fvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 4); +GLsizei n = *(GLsizei *)(pc + 4); if (swap) { n = bswap_32(n); @@ -771,9 +781,9 @@ __glXVertexAttribs3fvNVReqSize(const GLbyte * pc, Bool swap) } int -__glXVertexAttribs3svNVReqSize(const GLbyte * pc, Bool swap) +__glXVertexAttribs3svNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 4); +GLsizei n = *(GLsizei *)(pc + 4); if (swap) { n = bswap_32(n); @@ -783,9 +793,9 @@ __glXVertexAttribs3svNVReqSize(const GLbyte * pc, Bool swap) } int -__glXVertexAttribs4dvNVReqSize(const GLbyte * pc, Bool swap) +__glXVertexAttribs4dvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei n = *(GLsizei *) (pc + 4); +GLsizei n = *(GLsizei *)(pc + 4); if (swap) { n = bswap_32(n); @@ -795,9 +805,9 @@ __glXVertexAttribs4dvNVReqSize(const GLbyte * pc, Bool swap) } int -__glXProgramNamedParameter4fvNVReqSize(const GLbyte * pc, Bool swap) +__glXProgramNamedParameter4fvNVReqSize( const GLbyte * pc, Bool swap ) { - GLsizei len = *(GLsizei *) (pc + 4); +GLsizei len = *(GLsizei *)(pc + 4); if (swap) { len = bswap_32(len); @@ -806,28 +816,28 @@ __glXProgramNamedParameter4fvNVReqSize(const GLbyte * pc, Bool swap) return __GLX_PAD(len); } -ALIAS(Fogiv, Fogfv) - ALIAS(Lightiv, Lightfv) - ALIAS(LightModeliv, LightModelfv) - ALIAS(Materialiv, Materialfv) - ALIAS(TexParameteriv, TexParameterfv) - ALIAS(TexEnviv, TexEnvfv) - ALIAS(TexGeniv, TexGenfv) - ALIAS(PixelMapuiv, PixelMapfv) - ALIAS(ColorTableParameteriv, ColorTableParameterfv) - ALIAS(ConvolutionParameteriv, ConvolutionParameterfv) - ALIAS(CompressedTexSubImage1DARB, CompressedTexImage1DARB) - ALIAS(CompressedTexSubImage2DARB, CompressedTexImage3DARB) - ALIAS(LoadProgramNV, ProgramStringARB) - ALIAS(RequestResidentProgramsNV, DrawBuffersARB) - ALIAS(VertexAttribs1fvNV, PixelMapfv) - ALIAS(VertexAttribs1svNV, PixelMapusv) - ALIAS(VertexAttribs2fvNV, VertexAttribs1dvNV) - ALIAS(VertexAttribs2svNV, PixelMapfv) - ALIAS(VertexAttribs4fvNV, VertexAttribs2dvNV) - ALIAS(VertexAttribs4svNV, VertexAttribs1dvNV) - ALIAS(VertexAttribs4ubvNV, PixelMapfv) - ALIAS(PointParameterivNV, PointParameterfvEXT) - ALIAS(ProgramNamedParameter4dvNV, CompressedTexSubImage3DARB) - ALIAS(DeleteFramebuffersEXT, DrawBuffersARB) - ALIAS(DeleteRenderbuffersEXT, DrawBuffersARB) +ALIAS( Fogiv, Fogfv ) +ALIAS( Lightiv, Lightfv ) +ALIAS( LightModeliv, LightModelfv ) +ALIAS( Materialiv, Materialfv ) +ALIAS( TexParameteriv, TexParameterfv ) +ALIAS( TexEnviv, TexEnvfv ) +ALIAS( TexGeniv, TexGenfv ) +ALIAS( PixelMapuiv, PixelMapfv ) +ALIAS( ColorTableParameteriv, ColorTableParameterfv ) +ALIAS( ConvolutionParameteriv, ConvolutionParameterfv ) +ALIAS( CompressedTexSubImage1DARB, CompressedTexImage1DARB ) +ALIAS( CompressedTexSubImage2DARB, CompressedTexImage3DARB ) +ALIAS( LoadProgramNV, ProgramStringARB ) +ALIAS( RequestResidentProgramsNV, DrawBuffersARB ) +ALIAS( VertexAttribs1fvNV, PixelMapfv ) +ALIAS( VertexAttribs1svNV, PixelMapusv ) +ALIAS( VertexAttribs2fvNV, VertexAttribs1dvNV ) +ALIAS( VertexAttribs2svNV, PixelMapfv ) +ALIAS( VertexAttribs4fvNV, VertexAttribs2dvNV ) +ALIAS( VertexAttribs4svNV, VertexAttribs1dvNV ) +ALIAS( VertexAttribs4ubvNV, PixelMapfv ) +ALIAS( PointParameterivNV, PointParameterfvEXT ) +ALIAS( ProgramNamedParameter4dvNV, CompressedTexSubImage3DARB ) +ALIAS( DeleteFramebuffersEXT, DrawBuffersARB ) +ALIAS( DeleteRenderbuffersEXT, DrawBuffersARB ) |