~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to lib/wx/c_src/gen/gl_funcs.cpp

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * %CopyrightBegin%
3
3
 *
4
 
 * Copyright Ericsson AB 2008-2010. All Rights Reserved.
 
4
 * Copyright Ericsson AB 2008-2011. All Rights Reserved.
5
5
 *
6
6
 * The contents of this file are subject to the Erlang Public License,
7
7
 * Version 1.1, (the "License"); you may not use this file except in
395
395
 GLfloat *yorig = (GLfloat *) bp; bp += 4;
396
396
 GLfloat *xmove = (GLfloat *) bp; bp += 4;
397
397
 GLfloat *ymove = (GLfloat *) bp; bp += 4;
398
 
 GLubyte *bitmap = (GLubyte *) * (int *) bp; bp += 4;
 
398
 GLubyte *bitmap = (GLubyte *) (ErlDrvSInt) * (int *) bp; bp += 4;
399
399
 weglBitmap(*width,*height,*xorig,*yorig,*xmove,*ymove,bitmap);
400
400
}; break;
401
401
case 5044: { // glBitmap
538
538
 GLint *size = (GLint *) bp; bp += 4;
539
539
 GLenum *type = (GLenum *) bp; bp += 4;
540
540
 GLsizei *stride = (GLsizei *) bp; bp += 4;
541
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
541
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
542
542
 weglColorPointer(*size,*type,*stride,pointer);
543
543
}; break;
544
544
case 5074: { // glColorPointer
646
646
 GLenum *mode = (GLenum *) bp; bp += 4;
647
647
 GLsizei *count = (GLsizei *) bp; bp += 4;
648
648
 GLenum *type = (GLenum *) bp; bp += 4;
649
 
 GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
 
649
 GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
650
650
 weglDrawElements(*mode,*count,*type,indices);
651
651
}; break;
652
652
case 5091: { // glDrawElements
661
661
 GLsizei *height = (GLsizei *) bp; bp += 4;
662
662
 GLenum *format = (GLenum *) bp; bp += 4;
663
663
 GLenum *type = (GLenum *) bp; bp += 4;
664
 
 GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
 
664
 GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
665
665
 weglDrawPixels(*width,*height,*format,*type,pixels);
666
666
}; break;
667
667
case 5093: { // glDrawPixels
678
678
}; break;
679
679
case 5095: { // glEdgeFlagPointer
680
680
 GLsizei *stride = (GLsizei *) bp; bp += 4;
681
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
681
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
682
682
 weglEdgeFlagPointer(*stride,pointer);
683
683
}; break;
684
684
case 5096: { // glEdgeFlagPointer
1265
1265
case 5150: { // glIndexPointer
1266
1266
 GLenum *type = (GLenum *) bp; bp += 4;
1267
1267
 GLsizei *stride = (GLsizei *) bp; bp += 4;
1268
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
1268
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
1269
1269
 weglIndexPointer(*type,*stride,pointer);
1270
1270
}; break;
1271
1271
case 5151: { // glIndexPointer
1300
1300
case 5158: { // glInterleavedArrays
1301
1301
 GLenum *format = (GLenum *) bp; bp += 4;
1302
1302
 GLsizei *stride = (GLsizei *) bp; bp += 4;
1303
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
1303
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
1304
1304
 weglInterleavedArrays(*format,*stride,pointer);
1305
1305
}; break;
1306
1306
case 5159: { // glInterleavedArrays
1561
1561
case 5200: { // glNormalPointer
1562
1562
 GLenum *type = (GLenum *) bp; bp += 4;
1563
1563
 GLsizei *stride = (GLsizei *) bp; bp += 4;
1564
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
1564
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
1565
1565
 weglNormalPointer(*type,*stride,pointer);
1566
1566
}; break;
1567
1567
case 5201: { // glNormalPointer
1933
1933
 GLint *size = (GLint *) bp; bp += 4;
1934
1934
 GLenum *type = (GLenum *) bp; bp += 4;
1935
1935
 GLsizei *stride = (GLsizei *) bp; bp += 4;
1936
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
1936
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
1937
1937
 weglTexCoordPointer(*size,*type,*stride,pointer);
1938
1938
}; break;
1939
1939
case 5275: { // glTexCoordPointer
2016
2016
 GLint *border = (GLint *) bp; bp += 4;
2017
2017
 GLenum *format = (GLenum *) bp; bp += 4;
2018
2018
 GLenum *type = (GLenum *) bp; bp += 4;
2019
 
 GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
 
2019
 GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2020
2020
 weglTexImage1D(*target,*level,*internalformat,*width,*border,*format,*type,pixels);
2021
2021
}; break;
2022
2022
case 5287: { // glTexImage1D
2039
2039
 GLint *border = (GLint *) bp; bp += 4;
2040
2040
 GLenum *format = (GLenum *) bp; bp += 4;
2041
2041
 GLenum *type = (GLenum *) bp; bp += 4;
2042
 
 GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
 
2042
 GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2043
2043
 weglTexImage2D(*target,*level,*internalformat,*width,*height,*border,*format,*type,pixels);
2044
2044
}; break;
2045
2045
case 5289: { // glTexImage2D
2087
2087
 GLsizei *width = (GLsizei *) bp; bp += 4;
2088
2088
 GLenum *format = (GLenum *) bp; bp += 4;
2089
2089
 GLenum *type = (GLenum *) bp; bp += 4;
2090
 
 GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
 
2090
 GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2091
2091
 weglTexSubImage1D(*target,*level,*xoffset,*width,*format,*type,pixels);
2092
2092
}; break;
2093
2093
case 5295: { // glTexSubImage1D
2109
2109
 GLsizei *height = (GLsizei *) bp; bp += 4;
2110
2110
 GLenum *format = (GLenum *) bp; bp += 4;
2111
2111
 GLenum *type = (GLenum *) bp; bp += 4;
2112
 
 GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
 
2112
 GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2113
2113
 weglTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*type,pixels);
2114
2114
}; break;
2115
2115
case 5297: { // glTexSubImage2D
2188
2188
 GLint *size = (GLint *) bp; bp += 4;
2189
2189
 GLenum *type = (GLenum *) bp; bp += 4;
2190
2190
 GLsizei *stride = (GLsizei *) bp; bp += 4;
2191
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
2191
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2192
2192
 weglVertexPointer(*size,*type,*stride,pointer);
2193
2193
}; break;
2194
2194
case 5313: { // glVertexPointer
2222
2222
 GLuint *end = (GLuint *) bp; bp += 4;
2223
2223
 GLsizei *count = (GLsizei *) bp; bp += 4;
2224
2224
 GLenum *type = (GLenum *) bp; bp += 4;
2225
 
 GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
 
2225
 GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2226
2226
 weglDrawRangeElements(*mode,*start,*end,*count,*type,indices);
2227
2227
}; break;
2228
2228
case 5318: { // glDrawRangeElements
2244
2244
 GLint *border = (GLint *) bp; bp += 4;
2245
2245
 GLenum *format = (GLenum *) bp; bp += 4;
2246
2246
 GLenum *type = (GLenum *) bp; bp += 4;
2247
 
 GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
 
2247
 GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2248
2248
 weglTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*format,*type,pixels);
2249
2249
}; break;
2250
2250
case 5320: { // glTexImage3D
2271
2271
 GLsizei *depth = (GLsizei *) bp; bp += 4;
2272
2272
 GLenum *format = (GLenum *) bp; bp += 4;
2273
2273
 GLenum *type = (GLenum *) bp; bp += 4;
2274
 
 GLvoid *pixels = (GLvoid *) * (int *) bp; bp += 4;
 
2274
 GLvoid *pixels = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2275
2275
 weglTexSubImage3D(*target,*level,*xoffset,*yoffset,*zoffset,*width,*height,*depth,*format,*type,pixels);
2276
2276
}; break;
2277
2277
case 5322: { // glTexSubImage3D
2306
2306
 GLsizei *width = (GLsizei *) bp; bp += 4;
2307
2307
 GLenum *format = (GLenum *) bp; bp += 4;
2308
2308
 GLenum *type = (GLenum *) bp; bp += 4;
2309
 
 GLvoid *table = (GLvoid *) * (int *) bp; bp += 4;
 
2309
 GLvoid *table = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2310
2310
 weglColorTable(*target,*internalformat,*width,*format,*type,table);
2311
2311
}; break;
2312
2312
case 5325: { // glColorTable
2389
2389
 GLsizei *count = (GLsizei *) bp; bp += 4;
2390
2390
 GLenum *format = (GLenum *) bp; bp += 4;
2391
2391
 GLenum *type = (GLenum *) bp; bp += 4;
2392
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
2392
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2393
2393
 weglColorSubTable(*target,*start,*count,*format,*type,data);
2394
2394
}; break;
2395
2395
case 5333: { // glColorSubTable
2415
2415
 GLsizei *width = (GLsizei *) bp; bp += 4;
2416
2416
 GLenum *format = (GLenum *) bp; bp += 4;
2417
2417
 GLenum *type = (GLenum *) bp; bp += 4;
2418
 
 GLvoid *image = (GLvoid *) * (int *) bp; bp += 4;
 
2418
 GLvoid *image = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2419
2419
 weglConvolutionFilter1D(*target,*internalformat,*width,*format,*type,image);
2420
2420
}; break;
2421
2421
case 5336: { // glConvolutionFilter1D
2434
2434
 GLsizei *height = (GLsizei *) bp; bp += 4;
2435
2435
 GLenum *format = (GLenum *) bp; bp += 4;
2436
2436
 GLenum *type = (GLenum *) bp; bp += 4;
2437
 
 GLvoid *image = (GLvoid *) * (int *) bp; bp += 4;
 
2437
 GLvoid *image = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2438
2438
 weglConvolutionFilter2D(*target,*internalformat,*width,*height,*format,*type,image);
2439
2439
}; break;
2440
2440
case 5338: { // glConvolutionFilter2D
2530
2530
 GLsizei *height = (GLsizei *) bp; bp += 4;
2531
2531
 GLenum *format = (GLenum *) bp; bp += 4;
2532
2532
 GLenum *type = (GLenum *) bp; bp += 4;
2533
 
 GLvoid *row = (GLvoid *) * (int *) bp; bp += 4;
2534
 
 GLvoid *column = (GLvoid *) * (int *) bp; bp += 4;
 
2533
 GLvoid *row = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
 
2534
 GLvoid *column = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2535
2535
 weglSeparableFilter2D(*target,*internalformat,*width,*height,*format,*type,row,column);
2536
2536
}; break;
2537
2537
case 5347: { // glSeparableFilter2D
2666
2666
 GLsizei *depth = (GLsizei *) bp; bp += 4;
2667
2667
 GLint *border = (GLint *) bp; bp += 4;
2668
2668
 GLsizei *imageSize = (GLsizei *) bp; bp += 4;
2669
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
2669
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2670
2670
 weglCompressedTexImage3D(*target,*level,*internalformat,*width,*height,*depth,*border,*imageSize,data);
2671
2671
}; break;
2672
2672
case 5361: { // glCompressedTexImage3D
2689
2689
 GLsizei *height = (GLsizei *) bp; bp += 4;
2690
2690
 GLint *border = (GLint *) bp; bp += 4;
2691
2691
 GLsizei *imageSize = (GLsizei *) bp; bp += 4;
2692
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
2692
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2693
2693
 weglCompressedTexImage2D(*target,*level,*internalformat,*width,*height,*border,*imageSize,data);
2694
2694
}; break;
2695
2695
case 5363: { // glCompressedTexImage2D
2710
2710
 GLsizei *width = (GLsizei *) bp; bp += 4;
2711
2711
 GLint *border = (GLint *) bp; bp += 4;
2712
2712
 GLsizei *imageSize = (GLsizei *) bp; bp += 4;
2713
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
2713
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2714
2714
 weglCompressedTexImage1D(*target,*level,*internalformat,*width,*border,*imageSize,data);
2715
2715
}; break;
2716
2716
case 5365: { // glCompressedTexImage1D
2734
2734
 GLsizei *depth = (GLsizei *) bp; bp += 4;
2735
2735
 GLenum *format = (GLenum *) bp; bp += 4;
2736
2736
 GLsizei *imageSize = (GLsizei *) bp; bp += 4;
2737
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
2737
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2738
2738
 weglCompressedTexSubImage3D(*target,*level,*xoffset,*yoffset,*zoffset,*width,*height,*depth,*format,*imageSize,data);
2739
2739
}; break;
2740
2740
case 5367: { // glCompressedTexSubImage3D
2760
2760
 GLsizei *height = (GLsizei *) bp; bp += 4;
2761
2761
 GLenum *format = (GLenum *) bp; bp += 4;
2762
2762
 GLsizei *imageSize = (GLsizei *) bp; bp += 4;
2763
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
2763
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2764
2764
 weglCompressedTexSubImage2D(*target,*level,*xoffset,*yoffset,*width,*height,*format,*imageSize,data);
2765
2765
}; break;
2766
2766
case 5369: { // glCompressedTexSubImage2D
2782
2782
 GLsizei *width = (GLsizei *) bp; bp += 4;
2783
2783
 GLenum *format = (GLenum *) bp; bp += 4;
2784
2784
 GLsizei *imageSize = (GLsizei *) bp; bp += 4;
2785
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
2785
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2786
2786
 weglCompressedTexSubImage1D(*target,*level,*xoffset,*width,*format,*imageSize,data);
2787
2787
}; break;
2788
2788
case 5371: { // glCompressedTexSubImage1D
2958
2958
case 5402: { // glFogCoordPointer
2959
2959
 GLenum *type = (GLenum *) bp; bp += 4;
2960
2960
 GLsizei *stride = (GLsizei *) bp; bp += 4;
2961
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
2961
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
2962
2962
 weglFogCoordPointer(*type,*stride,pointer);
2963
2963
}; break;
2964
2964
case 5403: { // glFogCoordPointer
3003
3003
 GLint *size = (GLint *) bp; bp += 4;
3004
3004
 GLenum *type = (GLenum *) bp; bp += 4;
3005
3005
 GLsizei *stride = (GLsizei *) bp; bp += 4;
3006
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
3006
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
3007
3007
 weglSecondaryColorPointer(*size,*type,*stride,pointer);
3008
3008
}; break;
3009
3009
case 5413: { // glSecondaryColorPointer
3156
3156
 GLenum *target = (GLenum *) bp; bp += 4;
3157
3157
 bp += 4;
3158
3158
 GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
3159
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
3159
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
3160
3160
 GLenum *usage = (GLenum *) bp; bp += 4;
3161
3161
 weglBufferData(*target,size,data,*usage);
3162
3162
}; break;
3173
3173
 bp += 4;
3174
3174
 GLintptr offset = (GLintptr) * (GLuint64EXT *) bp; bp += 8;
3175
3175
 GLsizeiptr size = (GLsizeiptr) * (GLuint64EXT *) bp; bp += 8;
3176
 
 GLvoid *data = (GLvoid *) * (int *) bp; bp += 4;
 
3176
 GLvoid *data = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
3177
3177
 weglBufferSubData(*target,offset,size,data);
3178
3178
}; break;
3179
3179
case 5437: { // glBufferSubData
3833
3833
 GLboolean *normalized = (GLboolean *) bp; bp += 1;
3834
3834
 bp += 3;
3835
3835
 GLsizei *stride = (GLsizei *) bp; bp += 4;
3836
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
3836
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
3837
3837
 weglVertexAttribPointer(*index,*size,*type,*normalized,*stride,pointer);
3838
3838
}; break;
3839
3839
case 5519: { // glVertexAttribPointer
4051
4051
 GLint *size = (GLint *) bp; bp += 4;
4052
4052
 GLenum *type = (GLenum *) bp; bp += 4;
4053
4053
 GLsizei *stride = (GLsizei *) bp; bp += 4;
4054
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
4054
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
4055
4055
 weglVertexAttribIPointer(*index,*size,*type,*stride,pointer);
4056
4056
}; break;
4057
4057
case 5542: { // glVertexAttribIPointer
4345
4345
 GLenum *mode = (GLenum *) bp; bp += 4;
4346
4346
 GLsizei *count = (GLsizei *) bp; bp += 4;
4347
4347
 GLenum *type = (GLenum *) bp; bp += 4;
4348
 
 GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
 
4348
 GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
4349
4349
 GLsizei *primcount = (GLsizei *) bp; bp += 4;
4350
4350
 weglDrawElementsInstanced(*mode,*count,*type,indices,*primcount);
4351
4351
}; break;
5341
5341
 GLenum *mode = (GLenum *) bp; bp += 4;
5342
5342
 GLsizei *count = (GLsizei *) bp; bp += 4;
5343
5343
 GLenum *type = (GLenum *) bp; bp += 4;
5344
 
 GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
 
5344
 GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
5345
5345
 GLint *basevertex = (GLint *) bp; bp += 4;
5346
5346
 weglDrawElementsBaseVertex(*mode,*count,*type,indices,*basevertex);
5347
5347
}; break;
5359
5359
 GLuint *end = (GLuint *) bp; bp += 4;
5360
5360
 GLsizei *count = (GLsizei *) bp; bp += 4;
5361
5361
 GLenum *type = (GLenum *) bp; bp += 4;
5362
 
 GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
 
5362
 GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
5363
5363
 GLint *basevertex = (GLint *) bp; bp += 4;
5364
5364
 weglDrawRangeElementsBaseVertex(*mode,*start,*end,*count,*type,indices,*basevertex);
5365
5365
}; break;
5377
5377
 GLenum *mode = (GLenum *) bp; bp += 4;
5378
5378
 GLsizei *count = (GLsizei *) bp; bp += 4;
5379
5379
 GLenum *type = (GLenum *) bp; bp += 4;
5380
 
 GLvoid *indices = (GLvoid *) * (int *) bp; bp += 4;
 
5380
 GLvoid *indices = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
5381
5381
 GLsizei *primcount = (GLsizei *) bp; bp += 4;
5382
5382
 GLint *basevertex = (GLint *) bp; bp += 4;
5383
5383
 weglDrawElementsInstancedBaseVertex(*mode,*count,*type,indices,*primcount,*basevertex);
5772
5772
}; break;
5773
5773
case 5726: { // glDrawArraysIndirect
5774
5774
 GLenum *mode = (GLenum *) bp; bp += 4;
5775
 
 GLvoid *indirect = (GLvoid *) * (int *) bp; bp += 4;
 
5775
 GLvoid *indirect = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
5776
5776
 weglDrawArraysIndirect(*mode,indirect);
5777
5777
}; break;
5778
5778
case 5727: { // glDrawArraysIndirect
5783
5783
case 5728: { // glDrawElementsIndirect
5784
5784
 GLenum *mode = (GLenum *) bp; bp += 4;
5785
5785
 GLenum *type = (GLenum *) bp; bp += 4;
5786
 
 GLvoid *indirect = (GLvoid *) * (int *) bp; bp += 4;
 
5786
 GLvoid *indirect = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
5787
5787
 weglDrawElementsIndirect(*mode,*type,indirect);
5788
5788
}; break;
5789
5789
case 5729: { // glDrawElementsIndirect
6718
6718
 GLint *size = (GLint *) bp; bp += 4;
6719
6719
 GLenum *type = (GLenum *) bp; bp += 4;
6720
6720
 GLsizei *stride = (GLsizei *) bp; bp += 4;
6721
 
 GLvoid *pointer = (GLvoid *) * (int *) bp; bp += 4;
 
6721
 GLvoid *pointer = (GLvoid *) (ErlDrvSInt) * (int *) bp; bp += 4;
6722
6722
 weglVertexAttribLPointer(*index,*size,*type,*stride,pointer);
6723
6723
}; break;
6724
6724
case 5841: { // glVertexAttribLPointer