1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
|
/* DO NOT EDIT *************************************************
* THIS FILE AUTOMATICALLY GENERATED BY THE es_generator.py SCRIPT
* API specification file: /share/OpenBSD/xenocara/lib/libGL/libmesa/generated/../../../../dist/Mesa/src/mesa/main/APIspec.xml
* GLES version: GLES2.0
* date: 2011-05-15 15:41:34
*/
#include "GLES2/gl2.h"
#include "GLES2/gl2ext.h"
#include "main/mfeatures.h"
#if FEATURE_ES2
/* These types are needed for the Mesa veneer, but are not defined in
* the standard GLES headers.
*/
typedef double GLdouble;
typedef double GLclampd;
/* Mesa error handling requires these */
extern void *_mesa_get_current_context(void);
extern void _mesa_error(void *ctx, GLenum error, const char *fmtString, ... );
#include "main/compiler.h"
#include "main/api_exec.h"
#include "main/remap.h"
/* cannot include main/dispatch.h here */
#ifdef IN_DRI_DRIVER
#define _GLAPI_USE_REMAP_TABLE
#endif
/* glapi uses GLAPIENTRY while GLES headers define GL_APIENTRY */
#ifndef GLAPIENTRY
#define GLAPIENTRY GL_APIENTRY
#endif
#include "es2api/glapi/glapitable.h"
#include "es2api/glapi/glapioffsets.h"
#include "es2api/glapi/glapidispatch.h"
#if FEATURE_remap_table
#if !FEATURE_GL
int driDispatchRemapTable[driDispatchRemapTable_size];
#endif
#define need_MESA_remap_table
#include "es2api/main/remap_helper.h"
void
_mesa_init_remap_table_es2(void)
{
_mesa_do_init_remap_table(_mesa_function_pool,
driDispatchRemapTable_size,
MESA_remap_table_functions);
}
void
_mesa_map_static_functions_es2(void)
{
}
#endif
typedef void (*_glapi_proc)(void); /* generic function pointer */
/*************************************************************
* Generated functions begin here
*/
extern void GL_APIENTRY _mesa_ActiveTextureARB(GLenum texture);
static void GL_APIENTRY _es_ActiveTexture(GLenum texture)
{
switch(texture) {
case GL_TEXTURE0:
case GL_TEXTURE1:
case GL_TEXTURE2:
case GL_TEXTURE3:
case GL_TEXTURE4:
case GL_TEXTURE5:
case GL_TEXTURE6:
case GL_TEXTURE7:
case GL_TEXTURE8:
case GL_TEXTURE9:
case GL_TEXTURE10:
case GL_TEXTURE11:
case GL_TEXTURE12:
case GL_TEXTURE13:
case GL_TEXTURE14:
case GL_TEXTURE15:
case GL_TEXTURE16:
case GL_TEXTURE17:
case GL_TEXTURE18:
case GL_TEXTURE19:
case GL_TEXTURE20:
case GL_TEXTURE21:
case GL_TEXTURE22:
case GL_TEXTURE23:
case GL_TEXTURE24:
case GL_TEXTURE25:
case GL_TEXTURE26:
case GL_TEXTURE27:
case GL_TEXTURE28:
case GL_TEXTURE29:
case GL_TEXTURE30:
case GL_TEXTURE31:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glActiveTexture(texture=0x%x)", texture);
return;
}
_mesa_ActiveTextureARB(texture);
}
extern void GL_APIENTRY _mesa_AttachShader(GLuint program, GLuint shader);
#define _es_AttachShader _mesa_AttachShader
extern void GL_APIENTRY _mesa_BindAttribLocationARB(GLuint program, GLuint index, const char * name);
#define _es_BindAttribLocation _mesa_BindAttribLocationARB
extern void GL_APIENTRY _mesa_BindBufferARB(GLenum target, GLuint buffer);
static void GL_APIENTRY _es_BindBuffer(GLenum target, GLuint buffer)
{
switch(target) {
case GL_ARRAY_BUFFER:
case GL_ELEMENT_ARRAY_BUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindBuffer(target=0x%x)", target);
return;
}
_mesa_BindBufferARB(target, buffer);
}
extern void GL_APIENTRY _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer);
static void GL_APIENTRY _es_BindFramebuffer(GLenum target, GLuint framebuffer)
{
switch(target) {
case GL_FRAMEBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindFramebuffer(target=0x%x)", target);
return;
}
_mesa_BindFramebufferEXT(target, framebuffer);
}
extern void GL_APIENTRY _mesa_BindRenderbufferEXT(GLenum target, GLuint renderbuffer);
static void GL_APIENTRY _es_BindRenderbuffer(GLenum target, GLuint renderbuffer)
{
switch(target) {
case GL_RENDERBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindRenderbuffer(target=0x%x)", target);
return;
}
_mesa_BindRenderbufferEXT(target, renderbuffer);
}
extern void GL_APIENTRY _mesa_BindTexture(GLenum target, GLuint texture);
static void GL_APIENTRY _es_BindTexture(GLenum target, GLuint texture)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindTexture(target=0x%x)", target);
return;
}
_mesa_BindTexture(target, texture);
}
extern void GL_APIENTRY _mesa_BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
#define _es_BlendColor _mesa_BlendColor
extern void GL_APIENTRY _mesa_BlendEquation(GLenum mode);
static void GL_APIENTRY _es_BlendEquation(GLenum mode)
{
switch(mode) {
case GL_FUNC_ADD:
case GL_FUNC_SUBTRACT:
case GL_FUNC_REVERSE_SUBTRACT:
case GL_MIN_EXT:
case GL_MAX_EXT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquation(mode=0x%x)", mode);
return;
}
_mesa_BlendEquation(mode);
}
extern void GL_APIENTRY _mesa_BlendEquationSeparateEXT(GLenum modeRGB, GLenum modeAlpha);
static void GL_APIENTRY _es_BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
{
switch(modeRGB) {
case GL_FUNC_ADD:
case GL_FUNC_SUBTRACT:
case GL_FUNC_REVERSE_SUBTRACT:
case GL_MIN_EXT:
case GL_MAX_EXT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquationSeparate(modeRGB=0x%x)", modeRGB);
return;
}
switch(modeAlpha) {
case GL_FUNC_ADD:
case GL_FUNC_SUBTRACT:
case GL_FUNC_REVERSE_SUBTRACT:
case GL_MIN_EXT:
case GL_MAX_EXT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquationSeparate(modeAlpha=0x%x)", modeAlpha);
return;
}
_mesa_BlendEquationSeparateEXT(modeRGB, modeAlpha);
}
extern void GL_APIENTRY _mesa_BlendFunc(GLenum sfactor, GLenum dfactor);
static void GL_APIENTRY _es_BlendFunc(GLenum sfactor, GLenum dfactor)
{
switch(sfactor) {
case GL_ZERO:
case GL_ONE:
case GL_SRC_COLOR:
case GL_ONE_MINUS_SRC_COLOR:
case GL_SRC_ALPHA:
case GL_ONE_MINUS_SRC_ALPHA:
case GL_DST_ALPHA:
case GL_ONE_MINUS_DST_ALPHA:
case GL_DST_COLOR:
case GL_ONE_MINUS_DST_COLOR:
case GL_SRC_ALPHA_SATURATE:
case GL_CONSTANT_COLOR:
case GL_CONSTANT_ALPHA:
case GL_ONE_MINUS_CONSTANT_COLOR:
case GL_ONE_MINUS_CONSTANT_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFunc(sfactor=0x%x)", sfactor);
return;
}
switch(dfactor) {
case GL_ZERO:
case GL_ONE:
case GL_SRC_COLOR:
case GL_ONE_MINUS_SRC_COLOR:
case GL_SRC_ALPHA:
case GL_ONE_MINUS_SRC_ALPHA:
case GL_DST_ALPHA:
case GL_ONE_MINUS_DST_ALPHA:
case GL_DST_COLOR:
case GL_ONE_MINUS_DST_COLOR:
case GL_CONSTANT_COLOR:
case GL_CONSTANT_ALPHA:
case GL_ONE_MINUS_CONSTANT_COLOR:
case GL_ONE_MINUS_CONSTANT_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFunc(dfactor=0x%x)", dfactor);
return;
}
_mesa_BlendFunc(sfactor, dfactor);
}
extern void GL_APIENTRY _mesa_BlendFuncSeparateEXT(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
static void GL_APIENTRY _es_BlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
{
switch(srcRGB) {
case GL_ZERO:
case GL_ONE:
case GL_SRC_COLOR:
case GL_ONE_MINUS_SRC_COLOR:
case GL_SRC_ALPHA:
case GL_ONE_MINUS_SRC_ALPHA:
case GL_DST_ALPHA:
case GL_ONE_MINUS_DST_ALPHA:
case GL_DST_COLOR:
case GL_ONE_MINUS_DST_COLOR:
case GL_SRC_ALPHA_SATURATE:
case GL_CONSTANT_COLOR:
case GL_ONE_MINUS_CONSTANT_COLOR:
case GL_CONSTANT_ALPHA:
case GL_ONE_MINUS_CONSTANT_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(srcRGB=0x%x)", srcRGB);
return;
}
switch(dstRGB) {
case GL_ZERO:
case GL_ONE:
case GL_SRC_COLOR:
case GL_ONE_MINUS_SRC_COLOR:
case GL_SRC_ALPHA:
case GL_ONE_MINUS_SRC_ALPHA:
case GL_DST_ALPHA:
case GL_ONE_MINUS_DST_ALPHA:
case GL_DST_COLOR:
case GL_ONE_MINUS_DST_COLOR:
case GL_CONSTANT_COLOR:
case GL_ONE_MINUS_CONSTANT_COLOR:
case GL_CONSTANT_ALPHA:
case GL_ONE_MINUS_CONSTANT_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(dstRGB=0x%x)", dstRGB);
return;
}
switch(srcAlpha) {
case GL_ZERO:
case GL_ONE:
case GL_SRC_COLOR:
case GL_ONE_MINUS_SRC_COLOR:
case GL_SRC_ALPHA:
case GL_ONE_MINUS_SRC_ALPHA:
case GL_DST_ALPHA:
case GL_ONE_MINUS_DST_ALPHA:
case GL_DST_COLOR:
case GL_ONE_MINUS_DST_COLOR:
case GL_SRC_ALPHA_SATURATE:
case GL_CONSTANT_COLOR:
case GL_ONE_MINUS_CONSTANT_COLOR:
case GL_CONSTANT_ALPHA:
case GL_ONE_MINUS_CONSTANT_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(srcAlpha=0x%x)", srcAlpha);
return;
}
switch(dstAlpha) {
case GL_ZERO:
case GL_ONE:
case GL_SRC_COLOR:
case GL_ONE_MINUS_SRC_COLOR:
case GL_SRC_ALPHA:
case GL_ONE_MINUS_SRC_ALPHA:
case GL_DST_ALPHA:
case GL_ONE_MINUS_DST_ALPHA:
case GL_DST_COLOR:
case GL_ONE_MINUS_DST_COLOR:
case GL_CONSTANT_COLOR:
case GL_ONE_MINUS_CONSTANT_COLOR:
case GL_CONSTANT_ALPHA:
case GL_ONE_MINUS_CONSTANT_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(dstAlpha=0x%x)", dstAlpha);
return;
}
_mesa_BlendFuncSeparateEXT(srcRGB, dstRGB, srcAlpha, dstAlpha);
}
extern void GL_APIENTRY _mesa_BufferDataARB(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage);
static void GL_APIENTRY _es_BufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
{
switch(target) {
case GL_ARRAY_BUFFER:
case GL_ELEMENT_ARRAY_BUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferData(target=0x%x)", target);
return;
}
switch(usage) {
case GL_STATIC_DRAW:
case GL_DYNAMIC_DRAW:
case GL_STREAM_DRAW:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferData(usage=0x%x)", usage);
return;
}
_mesa_BufferDataARB(target, size, data, usage);
}
extern void GL_APIENTRY _mesa_BufferSubDataARB(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data);
static void GL_APIENTRY _es_BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data)
{
switch(target) {
case GL_ARRAY_BUFFER:
case GL_ELEMENT_ARRAY_BUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferSubData(target=0x%x)", target);
return;
}
_mesa_BufferSubDataARB(target, offset, size, data);
}
extern GLenum GL_APIENTRY _mesa_CheckFramebufferStatusEXT(GLenum target);
static GLenum GL_APIENTRY _es_CheckFramebufferStatus(GLenum target)
{
switch(target) {
case GL_FRAMEBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCheckFramebufferStatus(target=0x%x)", target);
return (GLenum) 0;
}
return _mesa_CheckFramebufferStatusEXT(target);
}
extern void GL_APIENTRY _mesa_Clear(GLbitfield mask);
static void GL_APIENTRY _es_Clear(GLbitfield mask)
{
switch(mask) {
case 0:
case (GL_COLOR_BUFFER_BIT):
case (GL_DEPTH_BUFFER_BIT):
case (GL_STENCIL_BUFFER_BIT):
case (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT):
case (GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
case (GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
case (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glClear(mask=0x%x)", mask);
return;
}
_mesa_Clear(mask);
}
extern void GL_APIENTRY _mesa_ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
#define _es_ClearColor _mesa_ClearColor
extern void GL_APIENTRY _mesa_ClearDepthf(GLclampf depth);
#define _es_ClearDepthf _mesa_ClearDepthf
extern void GL_APIENTRY _mesa_ClearStencil(GLint s);
#define _es_ClearStencil _mesa_ClearStencil
extern void GL_APIENTRY _mesa_ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
#define _es_ColorMask _mesa_ColorMask
extern void GL_APIENTRY _mesa_CompileShaderARB(GLuint shader);
#define _es_CompileShader _mesa_CompileShaderARB
extern void GL_APIENTRY _mesa_CompressedTexImage2DARB(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data);
static void GL_APIENTRY _es_CompressedTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexImage2D(target=0x%x)", target);
return;
}
switch(internalFormat) {
case GL_PALETTE4_RGB8_OES:
case GL_PALETTE4_RGBA8_OES:
case GL_PALETTE4_R5_G6_B5_OES:
case GL_PALETTE4_RGBA4_OES:
case GL_PALETTE4_RGB5_A1_OES:
case GL_PALETTE8_RGB8_OES:
case GL_PALETTE8_RGBA8_OES:
case GL_PALETTE8_R5_G6_B5_OES:
case GL_PALETTE8_RGBA4_OES:
case GL_PALETTE8_RGB5_A1_OES:
case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexImage2D(internalFormat=0x%x)", internalFormat);
return;
}
switch(border) {
case 0:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCompressedTexImage2D(border=%d)", border);
return;
}
_mesa_CompressedTexImage2DARB(target, level, internalFormat, width, height, border, imageSize, data);
}
extern void GL_APIENTRY _mesa_CompressedTexImage3DARB(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid * data);
static void GL_APIENTRY _es_CompressedTexImage3DOES(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid *data)
{
switch(target) {
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexImage3DOES(target=0x%x)", target);
return;
}
_mesa_CompressedTexImage3DARB(target, level, internalFormat, width, height, depth, border, imagesize, data);
}
extern void GL_APIENTRY _mesa_CompressedTexSubImage2DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data);
static void GL_APIENTRY _es_CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage2D(target=0x%x)", target);
return;
}
switch(format) {
case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage2D(format=0x%x)", format);
return;
}
_mesa_CompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, data);
}
extern void GL_APIENTRY _mesa_CompressedTexSubImage3DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imagesize, const GLvoid * data);
static void GL_APIENTRY _es_CompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imagesize, const GLvoid *data)
{
switch(target) {
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage3DOES(target=0x%x)", target);
return;
}
_mesa_CompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, data);
}
extern void GL_APIENTRY _mesa_CopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
static void GL_APIENTRY _es_CopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexImage2D(target=0x%x)", target);
return;
}
switch(internalFormat) {
case GL_ALPHA:
case GL_RGB:
case GL_RGBA:
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCopyTexImage2D(internalFormat=0x%x)", internalFormat);
return;
}
switch(border) {
case 0:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCopyTexImage2D(border=%d)", border);
return;
}
_mesa_CopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
}
extern void GL_APIENTRY _mesa_CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
static void GL_APIENTRY _es_CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexSubImage2D(target=0x%x)", target);
return;
}
_mesa_CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
}
extern void GL_APIENTRY _mesa_CopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
static void GL_APIENTRY _es_CopyTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
switch(target) {
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexSubImage3DOES(target=0x%x)", target);
return;
}
_mesa_CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
}
extern GLuint GL_APIENTRY _mesa_CreateProgram(void);
#define _es_CreateProgram _mesa_CreateProgram
extern GLuint GL_APIENTRY _mesa_CreateShader(GLenum type);
static GLuint GL_APIENTRY _es_CreateShader(GLenum type)
{
switch(type) {
case GL_VERTEX_SHADER:
case GL_FRAGMENT_SHADER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCreateShader(type=0x%x)", type);
return (GLuint) 0;
}
return _mesa_CreateShader(type);
}
extern void GL_APIENTRY _mesa_CullFace(GLenum mode);
static void GL_APIENTRY _es_CullFace(GLenum mode)
{
switch(mode) {
case GL_FRONT:
case GL_BACK:
case GL_FRONT_AND_BACK:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCullFace(mode=0x%x)", mode);
return;
}
_mesa_CullFace(mode);
}
extern void GL_APIENTRY _mesa_DeleteBuffersARB(GLsizei n, const GLuint * buffer);
#define _es_DeleteBuffers _mesa_DeleteBuffersARB
extern void GL_APIENTRY _mesa_DeleteFramebuffersEXT(GLsizei n, const GLuint * framebuffers);
#define _es_DeleteFramebuffers _mesa_DeleteFramebuffersEXT
extern void GL_APIENTRY _mesa_DeleteProgram(GLuint program);
#define _es_DeleteProgram _mesa_DeleteProgram
extern void GL_APIENTRY _mesa_DeleteRenderbuffersEXT(GLsizei n, const GLuint * renderbuffers);
#define _es_DeleteRenderbuffers _mesa_DeleteRenderbuffersEXT
extern void GL_APIENTRY _mesa_DeleteShader(GLuint shader);
#define _es_DeleteShader _mesa_DeleteShader
extern void GL_APIENTRY _mesa_DeleteTextures(GLsizei n, const GLuint * textures);
#define _es_DeleteTextures _mesa_DeleteTextures
extern void GL_APIENTRY _mesa_DepthFunc(GLenum func);
static void GL_APIENTRY _es_DepthFunc(GLenum func)
{
switch(func) {
case GL_NEVER:
case GL_LESS:
case GL_EQUAL:
case GL_LEQUAL:
case GL_GREATER:
case GL_NOTEQUAL:
case GL_GEQUAL:
case GL_ALWAYS:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDepthFunc(func=0x%x)", func);
return;
}
_mesa_DepthFunc(func);
}
extern void GL_APIENTRY _mesa_DepthMask(GLboolean flag);
#define _es_DepthMask _mesa_DepthMask
extern void GL_APIENTRY _mesa_DepthRangef(GLclampf zNear, GLclampf zFar);
#define _es_DepthRangef _mesa_DepthRangef
extern void GL_APIENTRY _mesa_DetachShader(GLuint program, GLuint shader);
#define _es_DetachShader _mesa_DetachShader
extern void GL_APIENTRY _mesa_Disable(GLenum cap);
static void GL_APIENTRY _es_Disable(GLenum cap)
{
switch(cap) {
case GL_CULL_FACE:
case GL_SCISSOR_TEST:
case GL_POLYGON_OFFSET_FILL:
case GL_SAMPLE_ALPHA_TO_COVERAGE:
case GL_SAMPLE_COVERAGE:
case GL_STENCIL_TEST:
case GL_DEPTH_TEST:
case GL_DITHER:
case GL_BLEND:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDisable(cap=0x%x)", cap);
return;
}
_mesa_Disable(cap);
}
extern void GL_APIENTRY _mesa_DisableVertexAttribArrayARB(GLuint index);
#define _es_DisableVertexAttribArray _mesa_DisableVertexAttribArrayARB
extern void GL_APIENTRY _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count);
static void GL_APIENTRY _es_DrawArrays(GLenum mode, GLint first, GLsizei count)
{
switch(mode) {
case GL_POINTS:
case GL_LINES:
case GL_LINE_LOOP:
case GL_LINE_STRIP:
case GL_TRIANGLES:
case GL_TRIANGLE_STRIP:
case GL_TRIANGLE_FAN:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawArrays(mode=0x%x)", mode);
return;
}
_mesa_DrawArrays(mode, first, count);
}
extern void GL_APIENTRY _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices);
static void GL_APIENTRY _es_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
{
switch(mode) {
case GL_POINTS:
case GL_LINES:
case GL_LINE_LOOP:
case GL_LINE_STRIP:
case GL_TRIANGLES:
case GL_TRIANGLE_STRIP:
case GL_TRIANGLE_FAN:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawElements(mode=0x%x)", mode);
return;
}
switch(type) {
case GL_UNSIGNED_BYTE:
case GL_UNSIGNED_SHORT:
case GL_UNSIGNED_INT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawElements(type=0x%x)", type);
return;
}
_mesa_DrawElements(mode, count, type, indices);
}
extern void GL_APIENTRY _mesa_EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image);
static void GL_APIENTRY _es_EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
{
switch(target) {
case GL_RENDERBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEGLImageTargetRenderbufferStorageOES(target=0x%x)", target);
return;
}
_mesa_EGLImageTargetRenderbufferStorageOES(target, image);
}
extern void GL_APIENTRY _mesa_EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image);
static void GL_APIENTRY _es_EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
{
switch(target) {
case GL_TEXTURE_2D:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEGLImageTargetTexture2DOES(target=0x%x)", target);
return;
}
_mesa_EGLImageTargetTexture2DOES(target, image);
}
extern void GL_APIENTRY _mesa_Enable(GLenum cap);
static void GL_APIENTRY _es_Enable(GLenum cap)
{
switch(cap) {
case GL_CULL_FACE:
case GL_SCISSOR_TEST:
case GL_POLYGON_OFFSET_FILL:
case GL_SAMPLE_ALPHA_TO_COVERAGE:
case GL_SAMPLE_COVERAGE:
case GL_STENCIL_TEST:
case GL_DEPTH_TEST:
case GL_DITHER:
case GL_BLEND:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEnable(cap=0x%x)", cap);
return;
}
_mesa_Enable(cap);
}
extern void GL_APIENTRY _mesa_EnableVertexAttribArrayARB(GLuint index);
#define _es_EnableVertexAttribArray _mesa_EnableVertexAttribArrayARB
extern void GL_APIENTRY _mesa_Finish(void);
#define _es_Finish _mesa_Finish
extern void GL_APIENTRY _mesa_Flush(void);
#define _es_Flush _mesa_Flush
extern void GL_APIENTRY _mesa_FramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
static void GL_APIENTRY _es_FramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
{
switch(target) {
case GL_FRAMEBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(target=0x%x)", target);
return;
}
switch(attachment) {
case GL_COLOR_ATTACHMENT0:
case GL_DEPTH_ATTACHMENT:
case GL_STENCIL_ATTACHMENT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(attachment=0x%x)", attachment);
return;
}
switch(renderbuffertarget) {
case GL_RENDERBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(renderbuffertarget=0x%x)", renderbuffertarget);
return;
}
_mesa_FramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);
}
extern void GL_APIENTRY _mesa_FramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
static void GL_APIENTRY _es_FramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
{
switch(target) {
case GL_FRAMEBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture2D(target=0x%x)", target);
return;
}
switch(attachment) {
case GL_COLOR_ATTACHMENT0:
case GL_DEPTH_ATTACHMENT:
case GL_STENCIL_ATTACHMENT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture2D(attachment=0x%x)", attachment);
return;
}
switch(textarget) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glFramebufferTexture2D(textarget=0x%x)", textarget);
return;
}
_mesa_FramebufferTexture2DEXT(target, attachment, textarget, texture, level);
}
extern void GL_APIENTRY _mesa_FramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
static void GL_APIENTRY _es_FramebufferTexture3DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
{
switch(target) {
case GL_FRAMEBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture3DOES(target=0x%x)", target);
return;
}
switch(attachment) {
case GL_COLOR_ATTACHMENT0:
case GL_DEPTH_ATTACHMENT:
case GL_STENCIL_ATTACHMENT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture3DOES(attachment=0x%x)", attachment);
return;
}
switch(textarget) {
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glFramebufferTexture3DOES(textarget=0x%x)", textarget);
return;
}
_mesa_FramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset);
}
extern void GL_APIENTRY _mesa_FrontFace(GLenum mode);
static void GL_APIENTRY _es_FrontFace(GLenum mode)
{
switch(mode) {
case GL_CW:
case GL_CCW:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFrontFace(mode=0x%x)", mode);
return;
}
_mesa_FrontFace(mode);
}
extern void GL_APIENTRY _mesa_GenBuffersARB(GLsizei n, GLuint * buffer);
#define _es_GenBuffers _mesa_GenBuffersARB
extern void GL_APIENTRY _mesa_GenFramebuffersEXT(GLsizei n, GLuint * ids);
#define _es_GenFramebuffers _mesa_GenFramebuffersEXT
extern void GL_APIENTRY _mesa_GenRenderbuffersEXT(GLsizei n, GLuint * renderbuffers);
#define _es_GenRenderbuffers _mesa_GenRenderbuffersEXT
extern void GL_APIENTRY _mesa_GenTextures(GLsizei n, GLuint * textures);
#define _es_GenTextures _mesa_GenTextures
extern void GL_APIENTRY _mesa_GenerateMipmapEXT(GLenum target);
static void GL_APIENTRY _es_GenerateMipmap(GLenum target)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGenerateMipmap(target=0x%x)", target);
return;
}
_mesa_GenerateMipmapEXT(target);
}
extern void GL_APIENTRY _mesa_GetActiveAttribARB(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name);
#define _es_GetActiveAttrib _mesa_GetActiveAttribARB
extern void GL_APIENTRY _mesa_GetActiveUniformARB(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name);
#define _es_GetActiveUniform _mesa_GetActiveUniformARB
extern void GL_APIENTRY _mesa_GetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders);
#define _es_GetAttachedShaders _mesa_GetAttachedShaders
extern GLint GL_APIENTRY _mesa_GetAttribLocationARB(GLuint program, const char * name);
#define _es_GetAttribLocation _mesa_GetAttribLocationARB
extern void GL_APIENTRY _mesa_GetBooleanv(GLenum pname, GLboolean * params);
#define _es_GetBooleanv _mesa_GetBooleanv
extern void GL_APIENTRY _mesa_GetBufferParameterivARB(GLenum target, GLenum pname, GLint * params);
static void GL_APIENTRY _es_GetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
{
switch(target) {
case GL_ARRAY_BUFFER:
case GL_ELEMENT_ARRAY_BUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferParameteriv(target=0x%x)", target);
return;
}
switch(pname) {
case GL_BUFFER_SIZE:
case GL_BUFFER_USAGE:
case GL_BUFFER_ACCESS_OES:
case GL_BUFFER_MAPPED_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferParameteriv(pname=0x%x)", pname);
return;
}
_mesa_GetBufferParameterivARB(target, pname, params);
}
extern void GL_APIENTRY _mesa_GetBufferPointervARB(GLenum target, GLenum pname, GLvoid ** params);
static void GL_APIENTRY _es_GetBufferPointervOES(GLenum target, GLenum pname, GLvoid **params)
{
switch(target) {
case GL_ARRAY_BUFFER:
case GL_ELEMENT_ARRAY_BUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferPointervOES(target=0x%x)", target);
return;
}
switch(pname) {
case GL_BUFFER_MAP_POINTER_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferPointervOES(pname=0x%x)", pname);
return;
}
_mesa_GetBufferPointervARB(target, pname, params);
}
extern GLenum GL_APIENTRY _mesa_GetError(void);
#define _es_GetError _mesa_GetError
extern void GL_APIENTRY _mesa_GetFloatv(GLenum pname, GLfloat * params);
#define _es_GetFloatv _mesa_GetFloatv
extern void GL_APIENTRY _mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment, GLenum pname, GLint * params);
static void GL_APIENTRY _es_GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
{
switch(target) {
case GL_FRAMEBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFramebufferAttachmentParameteriv(target=0x%x)", target);
return;
}
switch(pname) {
case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: /* size 1 */
case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: /* size 1 */
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: /* size 1 */
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: /* size 1 */
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES: /* size 1 */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFramebufferAttachmentParameteriv(pname=0x%x)", pname);
return;
}
_mesa_GetFramebufferAttachmentParameterivEXT(target, attachment, pname, params);
}
extern void GL_APIENTRY _mesa_GetIntegerv(GLenum pname, GLint * params);
#define _es_GetIntegerv _mesa_GetIntegerv
extern void GL_APIENTRY _mesa_GetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog);
#define _es_GetProgramInfoLog _mesa_GetProgramInfoLog
extern void GL_APIENTRY _mesa_GetProgramiv(GLuint program, GLenum pname, GLint * params);
static void GL_APIENTRY _es_GetProgramiv(GLuint program, GLenum pname, GLint *params)
{
switch(pname) {
case GL_DELETE_STATUS:
case GL_LINK_STATUS:
case GL_VALIDATE_STATUS:
case GL_INFO_LOG_LENGTH:
case GL_ATTACHED_SHADERS:
case GL_ACTIVE_ATTRIBUTES:
case GL_ACTIVE_ATTRIBUTE_MAX_LENGTH:
case GL_ACTIVE_UNIFORMS:
case GL_ACTIVE_UNIFORM_MAX_LENGTH:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetProgramiv(pname=0x%x)", pname);
return;
}
_mesa_GetProgramiv(program, pname, params);
}
extern void GL_APIENTRY _mesa_GetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint * params);
static void GL_APIENTRY _es_GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
{
switch(target) {
case GL_RENDERBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetRenderbufferParameteriv(target=0x%x)", target);
return;
}
switch(pname) {
case GL_RENDERBUFFER_WIDTH: /* size 1 */
case GL_RENDERBUFFER_HEIGHT: /* size 1 */
case GL_RENDERBUFFER_INTERNAL_FORMAT: /* size 1 */
case GL_RENDERBUFFER_RED_SIZE: /* size 1 */
case GL_RENDERBUFFER_GREEN_SIZE: /* size 1 */
case GL_RENDERBUFFER_BLUE_SIZE: /* size 1 */
case GL_RENDERBUFFER_ALPHA_SIZE: /* size 1 */
case GL_RENDERBUFFER_DEPTH_SIZE: /* size 1 */
case GL_RENDERBUFFER_STENCIL_SIZE: /* size 1 */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetRenderbufferParameteriv(pname=0x%x)", pname);
return;
}
_mesa_GetRenderbufferParameterivEXT(target, pname, params);
}
extern void GL_APIENTRY _mesa_GetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog);
#define _es_GetShaderInfoLog _mesa_GetShaderInfoLog
extern void GL_APIENTRY _mesa_GetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision);
static void GL_APIENTRY _es_GetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
{
switch(shadertype) {
case GL_VERTEX_SHADER:
case GL_FRAGMENT_SHADER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetShaderPrecisionFormat(shadertype=0x%x)", shadertype);
return;
}
switch(precisiontype) {
case GL_LOW_FLOAT:
case GL_MEDIUM_FLOAT:
case GL_HIGH_FLOAT:
case GL_LOW_INT:
case GL_MEDIUM_INT:
case GL_HIGH_INT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetShaderPrecisionFormat(precisiontype=0x%x)", precisiontype);
return;
}
_mesa_GetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
}
extern void GL_APIENTRY _mesa_GetShaderSourceARB(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source);
#define _es_GetShaderSource _mesa_GetShaderSourceARB
extern void GL_APIENTRY _mesa_GetShaderiv(GLuint shader, GLenum pname, GLint * params);
static void GL_APIENTRY _es_GetShaderiv(GLuint shader, GLenum pname, GLint *params)
{
switch(pname) {
case GL_SHADER_TYPE:
case GL_COMPILE_STATUS:
case GL_DELETE_STATUS:
case GL_INFO_LOG_LENGTH:
case GL_SHADER_SOURCE_LENGTH:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetShaderiv(pname=0x%x)", pname);
return;
}
_mesa_GetShaderiv(shader, pname, params);
}
extern const GLubyte * GL_APIENTRY _mesa_GetString(GLenum name);
static const GLubyte * GL_APIENTRY _es_GetString(GLenum name)
{
switch(name) {
case GL_VENDOR:
case GL_RENDERER:
case GL_VERSION:
case GL_EXTENSIONS:
case GL_SHADING_LANGUAGE_VERSION:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetString(name=0x%x)", name);
return (const GLubyte *) 0;
}
return _mesa_GetString(name);
}
extern void GL_APIENTRY _mesa_GetTexParameterfv(GLenum target, GLenum pname, GLfloat * params);
static void GL_APIENTRY _es_GetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterfv(target=0x%x)", target);
return;
}
switch(pname) {
case GL_TEXTURE_WRAP_S: /* size 1 */
case GL_TEXTURE_WRAP_T: /* size 1 */
case GL_TEXTURE_WRAP_R_OES: /* size 1 */
case GL_TEXTURE_MIN_FILTER: /* size 1 */
case GL_TEXTURE_MAG_FILTER: /* size 1 */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterfv(pname=0x%x)", pname);
return;
}
_mesa_GetTexParameterfv(target, pname, params);
}
extern void GL_APIENTRY _mesa_GetTexParameteriv(GLenum target, GLenum pname, GLint * params);
static void GL_APIENTRY _es_GetTexParameteriv(GLenum target, GLenum pname, GLint *params)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameteriv(target=0x%x)", target);
return;
}
switch(pname) {
case GL_TEXTURE_WRAP_S: /* size 1 */
case GL_TEXTURE_WRAP_T: /* size 1 */
case GL_TEXTURE_WRAP_R_OES: /* size 1 */
case GL_TEXTURE_MIN_FILTER: /* size 1 */
case GL_TEXTURE_MAG_FILTER: /* size 1 */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameteriv(pname=0x%x)", pname);
return;
}
_mesa_GetTexParameteriv(target, pname, params);
}
extern GLint GL_APIENTRY _mesa_GetUniformLocationARB(GLuint program, const char * name);
#define _es_GetUniformLocation _mesa_GetUniformLocationARB
extern void GL_APIENTRY _mesa_GetUniformfvARB(GLuint program, GLint location, GLfloat * params);
#define _es_GetUniformfv _mesa_GetUniformfvARB
extern void GL_APIENTRY _mesa_GetUniformivARB(GLuint program, GLint location, GLint * params);
#define _es_GetUniformiv _mesa_GetUniformivARB
extern void GL_APIENTRY _mesa_GetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid ** pointer);
static void GL_APIENTRY _es_GetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid **pointer)
{
switch(pname) {
case GL_VERTEX_ATTRIB_ARRAY_POINTER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetVertexAttribPointerv(pname=0x%x)", pname);
return;
}
_mesa_GetVertexAttribPointervARB(index, pname, pointer);
}
extern void GL_APIENTRY _mesa_GetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat * params);
static void GL_APIENTRY _es_GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
{
switch(pname) {
case GL_VERTEX_ATTRIB_ARRAY_ENABLED: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_SIZE: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_STRIDE: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_TYPE: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: /* size 1 */
case GL_CURRENT_VERTEX_ATTRIB: /* size 16? */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetVertexAttribfv(pname=0x%x)", pname);
return;
}
_mesa_GetVertexAttribfvARB(index, pname, params);
}
extern void GL_APIENTRY _mesa_GetVertexAttribivARB(GLuint index, GLenum pname, GLint * params);
static void GL_APIENTRY _es_GetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
{
switch(pname) {
case GL_VERTEX_ATTRIB_ARRAY_ENABLED: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_SIZE: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_STRIDE: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_TYPE: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: /* size 1 */
case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: /* size 1 */
case GL_CURRENT_VERTEX_ATTRIB: /* size 16? */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetVertexAttribiv(pname=0x%x)", pname);
return;
}
_mesa_GetVertexAttribivARB(index, pname, params);
}
extern void GL_APIENTRY _mesa_Hint(GLenum target, GLenum mode);
static void GL_APIENTRY _es_Hint(GLenum target, GLenum mode)
{
switch(target) {
case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES:
case GL_GENERATE_MIPMAP_HINT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glHint(target=0x%x)", target);
return;
}
switch(mode) {
case GL_FASTEST:
case GL_NICEST:
case GL_DONT_CARE:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glHint(mode=0x%x)", mode);
return;
}
_mesa_Hint(target, mode);
}
extern GLboolean GL_APIENTRY _mesa_IsBufferARB(GLuint buffer);
#define _es_IsBuffer _mesa_IsBufferARB
extern GLboolean GL_APIENTRY _mesa_IsEnabled(GLenum cap);
static GLboolean GL_APIENTRY _es_IsEnabled(GLenum cap)
{
switch(cap) {
case GL_CULL_FACE:
case GL_SCISSOR_TEST:
case GL_POLYGON_OFFSET_FILL:
case GL_SAMPLE_ALPHA_TO_COVERAGE:
case GL_SAMPLE_COVERAGE:
case GL_STENCIL_TEST:
case GL_DEPTH_TEST:
case GL_DITHER:
case GL_BLEND:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glIsEnabled(cap=0x%x)", cap);
return GL_FALSE;
}
return _mesa_IsEnabled(cap);
}
extern GLboolean GL_APIENTRY _mesa_IsFramebufferEXT(GLuint framebuffer);
#define _es_IsFramebuffer _mesa_IsFramebufferEXT
extern GLboolean GL_APIENTRY _mesa_IsProgram(GLuint program);
#define _es_IsProgram _mesa_IsProgram
extern GLboolean GL_APIENTRY _mesa_IsRenderbufferEXT(GLuint renderbuffer);
#define _es_IsRenderbuffer _mesa_IsRenderbufferEXT
extern GLboolean GL_APIENTRY _mesa_IsShader(GLuint shader);
#define _es_IsShader _mesa_IsShader
extern GLboolean GL_APIENTRY _mesa_IsTexture(GLuint texture);
#define _es_IsTexture _mesa_IsTexture
extern void GL_APIENTRY _mesa_LineWidth(GLfloat width);
#define _es_LineWidth _mesa_LineWidth
extern void GL_APIENTRY _mesa_LinkProgramARB(GLuint program);
#define _es_LinkProgram _mesa_LinkProgramARB
extern void * GL_APIENTRY _mesa_MapBufferARB(GLenum target, GLenum access);
static void * GL_APIENTRY _es_MapBufferOES(GLenum target, GLenum access)
{
switch(target) {
case GL_ARRAY_BUFFER:
case GL_ELEMENT_ARRAY_BUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMapBufferOES(target=0x%x)", target);
return (void *) 0;
}
switch(access) {
case GL_WRITE_ONLY_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMapBufferOES(access=0x%x)", access);
return (void *) 0;
}
return _mesa_MapBufferARB(target, access);
}
extern void GL_APIENTRY _mesa_MultiDrawArraysEXT(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount);
static void GL_APIENTRY _es_MultiDrawArraysEXT(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
{
switch(mode) {
case GL_POINTS:
case GL_LINES:
case GL_LINE_LOOP:
case GL_LINE_STRIP:
case GL_TRIANGLES:
case GL_TRIANGLE_STRIP:
case GL_TRIANGLE_FAN:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiDrawArraysEXT(mode=0x%x)", mode);
return;
}
_mesa_MultiDrawArraysEXT(mode, first, count, primcount);
}
extern void GL_APIENTRY _mesa_MultiDrawElementsEXT(GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount);
static void GL_APIENTRY _es_MultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount)
{
switch(mode) {
case GL_POINTS:
case GL_LINES:
case GL_LINE_LOOP:
case GL_LINE_STRIP:
case GL_TRIANGLES:
case GL_TRIANGLE_STRIP:
case GL_TRIANGLE_FAN:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiDrawElementsEXT(mode=0x%x)", mode);
return;
}
switch(type) {
case GL_UNSIGNED_BYTE:
case GL_UNSIGNED_SHORT:
case GL_UNSIGNED_INT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiDrawElementsEXT(type=0x%x)", type);
return;
}
_mesa_MultiDrawElementsEXT(mode, count, type, indices, primcount);
}
extern void GL_APIENTRY _mesa_PixelStorei(GLenum pname, GLint param);
static void GL_APIENTRY _es_PixelStorei(GLenum pname, GLint param)
{
switch(pname) {
case GL_PACK_ALIGNMENT:
case GL_UNPACK_ALIGNMENT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPixelStorei(pname=0x%x)", pname);
return;
}
switch(param) {
case 1:
case 2:
case 4:
case 8:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glPixelStorei(param=%d)", param);
return;
}
_mesa_PixelStorei(pname, param);
}
extern void GL_APIENTRY _mesa_PolygonOffset(GLfloat factor, GLfloat units);
#define _es_PolygonOffset _mesa_PolygonOffset
extern void GL_APIENTRY _mesa_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels);
static void GL_APIENTRY _es_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
{
switch(format) {
case GL_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
return;
}
break;
case GL_RGB:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
return;
}
break;
case GL_RGBA:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
return;
}
break;
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
return;
}
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
return;
}
_mesa_ReadPixels(x, y, width, height, format, type, pixels);
}
extern void GL_APIENTRY _mesa_ReleaseShaderCompiler(void);
#define _es_ReleaseShaderCompiler _mesa_ReleaseShaderCompiler
/* this function is special and is defined elsewhere */
extern void GL_APIENTRY _es_RenderbufferStorageEXT(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height);
static void GL_APIENTRY _check_RenderbufferStorage(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height)
{
switch(target) {
case GL_RENDERBUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glRenderbufferStorage(target=0x%x)", target);
return;
}
switch(internalFormat) {
case GL_DEPTH_COMPONENT16:
case GL_RGBA4:
case GL_RGB5_A1:
case GL_RGB565:
case GL_STENCIL_INDEX8:
case GL_DEPTH_COMPONENT24_OES:
case GL_DEPTH_COMPONENT32_OES:
case GL_RGB8_OES:
case GL_RGBA8_OES:
case GL_STENCIL_INDEX1_OES:
case GL_STENCIL_INDEX4_OES:
case GL_DEPTH24_STENCIL8_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glRenderbufferStorage(internalFormat=0x%x)", internalFormat);
return;
}
_es_RenderbufferStorageEXT(target, internalFormat, width, height);
}
extern void GL_APIENTRY _mesa_SampleCoverageARB(GLclampf value, GLboolean invert);
#define _es_SampleCoverage _mesa_SampleCoverageARB
extern void GL_APIENTRY _mesa_Scissor(GLint x, GLint y, GLsizei width, GLsizei height);
#define _es_Scissor _mesa_Scissor
extern void GL_APIENTRY _mesa_ShaderBinary(GLsizei n, const GLuint * shaders, GLenum binaryformat, const GLvoid * binary, GLsizei length);
#define _es_ShaderBinary _mesa_ShaderBinary
extern void GL_APIENTRY _mesa_ShaderSourceARB(GLuint shader, GLsizei count, const GLchar ** string, const int * length);
#define _es_ShaderSource _mesa_ShaderSourceARB
extern void GL_APIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask);
static void GL_APIENTRY _es_StencilFunc(GLenum func, GLint ref, GLuint mask)
{
switch(func) {
case GL_NEVER:
case GL_LESS:
case GL_LEQUAL:
case GL_GREATER:
case GL_GEQUAL:
case GL_EQUAL:
case GL_NOTEQUAL:
case GL_ALWAYS:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilFunc(func=0x%x)", func);
return;
}
_mesa_StencilFunc(func, ref, mask);
}
extern void GL_APIENTRY _mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
static void GL_APIENTRY _es_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
{
switch(face) {
case GL_FRONT:
case GL_BACK:
case GL_FRONT_AND_BACK:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilFuncSeparate(face=0x%x)", face);
return;
}
switch(func) {
case GL_NEVER:
case GL_LESS:
case GL_LEQUAL:
case GL_GREATER:
case GL_GEQUAL:
case GL_EQUAL:
case GL_NOTEQUAL:
case GL_ALWAYS:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilFuncSeparate(func=0x%x)", func);
return;
}
_mesa_StencilFuncSeparate(face, func, ref, mask);
}
extern void GL_APIENTRY _mesa_StencilMask(GLuint mask);
#define _es_StencilMask _mesa_StencilMask
extern void GL_APIENTRY _mesa_StencilMaskSeparate(GLenum face, GLuint mask);
static void GL_APIENTRY _es_StencilMaskSeparate(GLenum face, GLuint mask)
{
switch(face) {
case GL_FRONT:
case GL_BACK:
case GL_FRONT_AND_BACK:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilMaskSeparate(face=0x%x)", face);
return;
}
_mesa_StencilMaskSeparate(face, mask);
}
extern void GL_APIENTRY _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass);
static void GL_APIENTRY _es_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
{
switch(fail) {
case GL_KEEP:
case GL_ZERO:
case GL_REPLACE:
case GL_INCR:
case GL_DECR:
case GL_INVERT:
case GL_INCR_WRAP:
case GL_DECR_WRAP:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(fail=0x%x)", fail);
return;
}
switch(zfail) {
case GL_KEEP:
case GL_ZERO:
case GL_REPLACE:
case GL_INCR:
case GL_DECR:
case GL_INVERT:
case GL_INCR_WRAP:
case GL_DECR_WRAP:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(zfail=0x%x)", zfail);
return;
}
switch(zpass) {
case GL_KEEP:
case GL_ZERO:
case GL_REPLACE:
case GL_INCR:
case GL_DECR:
case GL_INVERT:
case GL_INCR_WRAP:
case GL_DECR_WRAP:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(zpass=0x%x)", zpass);
return;
}
_mesa_StencilOp(fail, zfail, zpass);
}
extern void GL_APIENTRY _mesa_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
static void GL_APIENTRY _es_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
{
switch(face) {
case GL_FRONT:
case GL_BACK:
case GL_FRONT_AND_BACK:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(face=0x%x)", face);
return;
}
switch(fail) {
case GL_KEEP:
case GL_ZERO:
case GL_REPLACE:
case GL_INCR:
case GL_DECR:
case GL_INVERT:
case GL_INCR_WRAP:
case GL_DECR_WRAP:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(fail=0x%x)", fail);
return;
}
switch(zfail) {
case GL_KEEP:
case GL_ZERO:
case GL_REPLACE:
case GL_INCR:
case GL_DECR:
case GL_INVERT:
case GL_INCR_WRAP:
case GL_DECR_WRAP:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(zfail=0x%x)", zfail);
return;
}
switch(zpass) {
case GL_KEEP:
case GL_ZERO:
case GL_REPLACE:
case GL_INCR:
case GL_DECR:
case GL_INVERT:
case GL_INCR_WRAP:
case GL_DECR_WRAP:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(zpass=0x%x)", zpass);
return;
}
_mesa_StencilOpSeparate(face, fail, zfail, zpass);
}
extern void GL_APIENTRY _mesa_TexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
static void GL_APIENTRY _es_TexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexImage2D(target=0x%x)", target);
return;
}
switch(internalFormat) {
case GL_ALPHA:
case GL_RGB:
case GL_RGBA:
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
case GL_DEPTH_COMPONENT:
case GL_DEPTH_STENCIL_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=%d)", internalFormat);
return;
}
switch(border) {
case 0:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(border=%d)", border);
return;
}
switch(format) {
case GL_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
return;
}
break;
case GL_RGB:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
return;
}
break;
case GL_RGBA:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
return;
}
break;
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
return;
}
break;
case GL_DEPTH_COMPONENT:
if (type != GL_UNSIGNED_SHORT && type != GL_UNSIGNED_INT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
return;
}
break;
case GL_DEPTH_STENCIL_OES:
if (type != GL_UNSIGNED_INT_24_8_OES) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
return;
}
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
return;
}
_mesa_TexImage2D(target, level, internalFormat, width, height, border, format, type, pixels);
}
extern void GL_APIENTRY _mesa_TexImage3D(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
static void GL_APIENTRY _es_TexImage3DOES(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
{
switch(target) {
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexImage3DOES(target=0x%x)", target);
return;
}
switch(internalFormat) {
case GL_ALPHA:
case GL_RGB:
case GL_RGBA:
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexImage3DOES(internalFormat=0x%x)", internalFormat);
return;
}
switch(format) {
case GL_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
return;
}
break;
case GL_RGB:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
return;
}
break;
case GL_RGBA:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
return;
}
break;
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
return;
}
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
return;
}
_mesa_TexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels);
}
extern void GL_APIENTRY _mesa_TexParameterf(GLenum target, GLenum pname, GLfloat param);
static void GL_APIENTRY _es_TexParameterf(GLenum target, GLenum pname, GLfloat param)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(target=0x%x)", target);
return;
}
switch(pname) {
case GL_TEXTURE_WRAP_S:
case GL_TEXTURE_WRAP_T:
case GL_TEXTURE_WRAP_R_OES:
if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MIN_FILTER:
if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAG_FILTER:
if (param != GL_NEAREST && param != GL_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAX_ANISOTROPY_EXT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
return;
}
_mesa_TexParameterf(target, pname, param);
}
extern void GL_APIENTRY _mesa_TexParameterfv(GLenum target, GLenum pname, const GLfloat * params);
static void GL_APIENTRY _es_TexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(target=0x%x)", target);
return;
}
switch(pname) {
case GL_TEXTURE_WRAP_S: /* size 1 */
case GL_TEXTURE_WRAP_T: /* size 1 */
case GL_TEXTURE_WRAP_R_OES: /* size 1 */
if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MIN_FILTER: /* size 1 */
if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAG_FILTER: /* size 1 */
if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAX_ANISOTROPY_EXT: /* size 1 */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
return;
}
_mesa_TexParameterfv(target, pname, params);
}
extern void GL_APIENTRY _mesa_TexParameteri(GLenum target, GLenum pname, GLint param);
static void GL_APIENTRY _es_TexParameteri(GLenum target, GLenum pname, GLint param)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(target=0x%x)", target);
return;
}
switch(pname) {
case GL_TEXTURE_WRAP_S:
case GL_TEXTURE_WRAP_T:
case GL_TEXTURE_WRAP_R_OES:
if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MIN_FILTER:
if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAG_FILTER:
if (param != GL_NEAREST && param != GL_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAX_ANISOTROPY_EXT:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
return;
}
_mesa_TexParameteri(target, pname, param);
}
extern void GL_APIENTRY _mesa_TexParameteriv(GLenum target, GLenum pname, const GLint * params);
static void GL_APIENTRY _es_TexParameteriv(GLenum target, GLenum pname, const GLint *params)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(target=0x%x)", target);
return;
}
switch(pname) {
case GL_TEXTURE_WRAP_S: /* size 1 */
case GL_TEXTURE_WRAP_T: /* size 1 */
case GL_TEXTURE_WRAP_R_OES: /* size 1 */
if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MIN_FILTER: /* size 1 */
if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAG_FILTER: /* size 1 */
if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
return;
}
break;
case GL_TEXTURE_MAX_ANISOTROPY_EXT: /* size 1 */
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
return;
}
_mesa_TexParameteriv(target, pname, params);
}
extern void GL_APIENTRY _mesa_TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
static void GL_APIENTRY _es_TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
{
switch(target) {
case GL_TEXTURE_2D:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexSubImage2D(target=0x%x)", target);
return;
}
switch(format) {
case GL_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
return;
}
break;
case GL_RGB:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
return;
}
break;
case GL_RGBA:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
return;
}
break;
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
return;
}
break;
case GL_DEPTH_COMPONENT:
if (type != GL_UNSIGNED_SHORT && type != GL_UNSIGNED_INT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
return;
}
break;
case GL_DEPTH_STENCIL_OES:
if (type != GL_UNSIGNED_INT_24_8_OES) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
return;
}
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
return;
}
_mesa_TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
}
extern void GL_APIENTRY _mesa_TexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
static void GL_APIENTRY _es_TexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)
{
switch(target) {
case GL_TEXTURE_3D_OES:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexSubImage3DOES(target=0x%x)", target);
return;
}
switch(format) {
case GL_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
return;
}
break;
case GL_RGB:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
return;
}
break;
case GL_RGBA:
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
return;
}
break;
case GL_LUMINANCE:
case GL_LUMINANCE_ALPHA:
if (type != GL_UNSIGNED_BYTE) {
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
return;
}
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
return;
}
_mesa_TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
extern void GL_APIENTRY _mesa_Uniform1fARB(GLint location, GLfloat v0);
#define _es_Uniform1f _mesa_Uniform1fARB
extern void GL_APIENTRY _mesa_Uniform1fvARB(GLint location, GLsizei count, const GLfloat * values);
#define _es_Uniform1fv _mesa_Uniform1fvARB
extern void GL_APIENTRY _mesa_Uniform1iARB(GLint location, GLint v0);
#define _es_Uniform1i _mesa_Uniform1iARB
extern void GL_APIENTRY _mesa_Uniform1ivARB(GLint location, GLsizei count, const GLint * values);
#define _es_Uniform1iv _mesa_Uniform1ivARB
extern void GL_APIENTRY _mesa_Uniform2fARB(GLint location, GLfloat v0, GLfloat v1);
#define _es_Uniform2f _mesa_Uniform2fARB
extern void GL_APIENTRY _mesa_Uniform2fvARB(GLint location, GLsizei count, const GLfloat * values);
#define _es_Uniform2fv _mesa_Uniform2fvARB
extern void GL_APIENTRY _mesa_Uniform2iARB(GLint location, GLint v0, GLint v1);
#define _es_Uniform2i _mesa_Uniform2iARB
extern void GL_APIENTRY _mesa_Uniform2ivARB(GLint location, GLsizei count, const GLint * values);
#define _es_Uniform2iv _mesa_Uniform2ivARB
extern void GL_APIENTRY _mesa_Uniform3fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
#define _es_Uniform3f _mesa_Uniform3fARB
extern void GL_APIENTRY _mesa_Uniform3fvARB(GLint location, GLsizei count, const GLfloat * values);
#define _es_Uniform3fv _mesa_Uniform3fvARB
extern void GL_APIENTRY _mesa_Uniform3iARB(GLint location, GLint v0, GLint v1, GLint v2);
#define _es_Uniform3i _mesa_Uniform3iARB
extern void GL_APIENTRY _mesa_Uniform3ivARB(GLint location, GLsizei count, const GLint * values);
#define _es_Uniform3iv _mesa_Uniform3ivARB
extern void GL_APIENTRY _mesa_Uniform4fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
#define _es_Uniform4f _mesa_Uniform4fARB
extern void GL_APIENTRY _mesa_Uniform4fvARB(GLint location, GLsizei count, const GLfloat * values);
#define _es_Uniform4fv _mesa_Uniform4fvARB
extern void GL_APIENTRY _mesa_Uniform4iARB(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
#define _es_Uniform4i _mesa_Uniform4iARB
extern void GL_APIENTRY _mesa_Uniform4ivARB(GLint location, GLsizei count, const GLint * values);
#define _es_Uniform4iv _mesa_Uniform4ivARB
extern void GL_APIENTRY _mesa_UniformMatrix2fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
#define _es_UniformMatrix2fv _mesa_UniformMatrix2fvARB
extern void GL_APIENTRY _mesa_UniformMatrix3fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
#define _es_UniformMatrix3fv _mesa_UniformMatrix3fvARB
extern void GL_APIENTRY _mesa_UniformMatrix4fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
#define _es_UniformMatrix4fv _mesa_UniformMatrix4fvARB
extern GLboolean GL_APIENTRY _mesa_UnmapBufferARB(GLenum target);
static GLboolean GL_APIENTRY _es_UnmapBufferOES(GLenum target)
{
switch(target) {
case GL_ARRAY_BUFFER:
case GL_ELEMENT_ARRAY_BUFFER:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glUnmapBufferOES(target=0x%x)", target);
return GL_FALSE;
}
return _mesa_UnmapBufferARB(target);
}
extern void GL_APIENTRY _mesa_UseProgramObjectARB(GLuint program);
#define _es_UseProgram _mesa_UseProgramObjectARB
extern void GL_APIENTRY _mesa_ValidateProgramARB(GLuint program);
#define _es_ValidateProgram _mesa_ValidateProgramARB
extern void GL_APIENTRY _vbo_VertexAttrib1f(GLuint index, GLfloat x);
#define _es_VertexAttrib1f _vbo_VertexAttrib1f
extern void GL_APIENTRY _vbo_VertexAttrib1fv(GLuint index, const GLfloat * v);
#define _es_VertexAttrib1fv _vbo_VertexAttrib1fv
extern void GL_APIENTRY _vbo_VertexAttrib2f(GLuint index, GLfloat x, GLfloat y);
#define _es_VertexAttrib2f _vbo_VertexAttrib2f
extern void GL_APIENTRY _vbo_VertexAttrib2fv(GLuint index, const GLfloat * v);
#define _es_VertexAttrib2fv _vbo_VertexAttrib2fv
extern void GL_APIENTRY _vbo_VertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z);
#define _es_VertexAttrib3f _vbo_VertexAttrib3f
extern void GL_APIENTRY _vbo_VertexAttrib3fv(GLuint index, const GLfloat * v);
#define _es_VertexAttrib3fv _vbo_VertexAttrib3fv
extern void GL_APIENTRY _vbo_VertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
#define _es_VertexAttrib4f _vbo_VertexAttrib4f
extern void GL_APIENTRY _vbo_VertexAttrib4fv(GLuint index, const GLfloat * v);
#define _es_VertexAttrib4fv _vbo_VertexAttrib4fv
extern void GL_APIENTRY _mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer);
static void GL_APIENTRY _es_VertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
{
switch(size) {
case 1:
case 2:
case 3:
case 4:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glVertexAttribPointer(size=%d)", size);
return;
}
switch(type) {
case GL_BYTE:
case GL_UNSIGNED_BYTE:
case GL_SHORT:
case GL_UNSIGNED_SHORT:
case GL_FLOAT:
case GL_FIXED:
break;
default:
_mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glVertexAttribPointer(type=0x%x)", type);
return;
}
_mesa_VertexAttribPointerARB(index, size, type, normalized, stride, pointer);
}
extern void GL_APIENTRY _mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height);
#define _es_Viewport _mesa_Viewport
struct _glapi_table *
_mesa_create_exec_table_es2(void)
{
struct _glapi_table *exec;
exec = _mesa_alloc_dispatch_table(sizeof *exec);
if (exec == NULL)
return NULL;
SET_ActiveTexture(exec, _es_ActiveTexture);
SET_AttachShader(exec, _es_AttachShader);
SET_BindAttribLocation(exec, _es_BindAttribLocation);
SET_BindBuffer(exec, _es_BindBuffer);
SET_BindFramebuffer(exec, _es_BindFramebuffer);
SET_BindRenderbuffer(exec, _es_BindRenderbuffer);
SET_BindTexture(exec, _es_BindTexture);
SET_BlendColor(exec, _es_BlendColor);
SET_BlendEquation(exec, _es_BlendEquation);
SET_BlendEquationSeparate(exec, _es_BlendEquationSeparate);
SET_BlendFunc(exec, _es_BlendFunc);
SET_BlendFuncSeparate(exec, _es_BlendFuncSeparate);
SET_BufferData(exec, _es_BufferData);
SET_BufferSubData(exec, _es_BufferSubData);
SET_CheckFramebufferStatus(exec, _es_CheckFramebufferStatus);
SET_Clear(exec, _es_Clear);
SET_ClearColor(exec, _es_ClearColor);
SET_ClearDepthf(exec, _es_ClearDepthf);
SET_ClearStencil(exec, _es_ClearStencil);
SET_ColorMask(exec, _es_ColorMask);
SET_CompileShader(exec, _es_CompileShader);
SET_CompressedTexImage2D(exec, _es_CompressedTexImage2D);
SET_CompressedTexImage3DOES(exec, _es_CompressedTexImage3DOES);
SET_CompressedTexSubImage2D(exec, _es_CompressedTexSubImage2D);
SET_CompressedTexSubImage3DOES(exec, _es_CompressedTexSubImage3DOES);
SET_CopyTexImage2D(exec, _es_CopyTexImage2D);
SET_CopyTexSubImage2D(exec, _es_CopyTexSubImage2D);
SET_CopyTexSubImage3DOES(exec, _es_CopyTexSubImage3DOES);
SET_CreateProgram(exec, _es_CreateProgram);
SET_CreateShader(exec, _es_CreateShader);
SET_CullFace(exec, _es_CullFace);
SET_DeleteBuffers(exec, _es_DeleteBuffers);
SET_DeleteFramebuffers(exec, _es_DeleteFramebuffers);
SET_DeleteProgram(exec, _es_DeleteProgram);
SET_DeleteRenderbuffers(exec, _es_DeleteRenderbuffers);
SET_DeleteShader(exec, _es_DeleteShader);
SET_DeleteTextures(exec, _es_DeleteTextures);
SET_DepthFunc(exec, _es_DepthFunc);
SET_DepthMask(exec, _es_DepthMask);
SET_DepthRangef(exec, _es_DepthRangef);
SET_DetachShader(exec, _es_DetachShader);
SET_Disable(exec, _es_Disable);
SET_DisableVertexAttribArray(exec, _es_DisableVertexAttribArray);
SET_DrawArrays(exec, _es_DrawArrays);
SET_DrawElements(exec, _es_DrawElements);
SET_EGLImageTargetRenderbufferStorageOES(exec, _es_EGLImageTargetRenderbufferStorageOES);
SET_EGLImageTargetTexture2DOES(exec, _es_EGLImageTargetTexture2DOES);
SET_Enable(exec, _es_Enable);
SET_EnableVertexAttribArray(exec, _es_EnableVertexAttribArray);
SET_Finish(exec, _es_Finish);
SET_Flush(exec, _es_Flush);
SET_FramebufferRenderbuffer(exec, _es_FramebufferRenderbuffer);
SET_FramebufferTexture2D(exec, _es_FramebufferTexture2D);
SET_FramebufferTexture3DOES(exec, _es_FramebufferTexture3DOES);
SET_FrontFace(exec, _es_FrontFace);
SET_GenBuffers(exec, _es_GenBuffers);
SET_GenFramebuffers(exec, _es_GenFramebuffers);
SET_GenRenderbuffers(exec, _es_GenRenderbuffers);
SET_GenTextures(exec, _es_GenTextures);
SET_GenerateMipmap(exec, _es_GenerateMipmap);
SET_GetActiveAttrib(exec, _es_GetActiveAttrib);
SET_GetActiveUniform(exec, _es_GetActiveUniform);
SET_GetAttachedShaders(exec, _es_GetAttachedShaders);
SET_GetAttribLocation(exec, _es_GetAttribLocation);
SET_GetBooleanv(exec, _es_GetBooleanv);
SET_GetBufferParameteriv(exec, _es_GetBufferParameteriv);
SET_GetBufferPointervOES(exec, _es_GetBufferPointervOES);
SET_GetError(exec, _es_GetError);
SET_GetFloatv(exec, _es_GetFloatv);
SET_GetFramebufferAttachmentParameteriv(exec, _es_GetFramebufferAttachmentParameteriv);
SET_GetIntegerv(exec, _es_GetIntegerv);
SET_GetProgramInfoLog(exec, _es_GetProgramInfoLog);
SET_GetProgramiv(exec, _es_GetProgramiv);
SET_GetRenderbufferParameteriv(exec, _es_GetRenderbufferParameteriv);
SET_GetShaderInfoLog(exec, _es_GetShaderInfoLog);
SET_GetShaderPrecisionFormat(exec, _es_GetShaderPrecisionFormat);
SET_GetShaderSource(exec, _es_GetShaderSource);
SET_GetShaderiv(exec, _es_GetShaderiv);
SET_GetString(exec, _es_GetString);
SET_GetTexParameterfv(exec, _es_GetTexParameterfv);
SET_GetTexParameteriv(exec, _es_GetTexParameteriv);
SET_GetUniformLocation(exec, _es_GetUniformLocation);
SET_GetUniformfv(exec, _es_GetUniformfv);
SET_GetUniformiv(exec, _es_GetUniformiv);
SET_GetVertexAttribPointerv(exec, _es_GetVertexAttribPointerv);
SET_GetVertexAttribfv(exec, _es_GetVertexAttribfv);
SET_GetVertexAttribiv(exec, _es_GetVertexAttribiv);
SET_Hint(exec, _es_Hint);
SET_IsBuffer(exec, _es_IsBuffer);
SET_IsEnabled(exec, _es_IsEnabled);
SET_IsFramebuffer(exec, _es_IsFramebuffer);
SET_IsProgram(exec, _es_IsProgram);
SET_IsRenderbuffer(exec, _es_IsRenderbuffer);
SET_IsShader(exec, _es_IsShader);
SET_IsTexture(exec, _es_IsTexture);
SET_LineWidth(exec, _es_LineWidth);
SET_LinkProgram(exec, _es_LinkProgram);
SET_MapBufferOES(exec, _es_MapBufferOES);
SET_MultiDrawArraysEXT(exec, _es_MultiDrawArraysEXT);
SET_MultiDrawElementsEXT(exec, _es_MultiDrawElementsEXT);
SET_PixelStorei(exec, _es_PixelStorei);
SET_PolygonOffset(exec, _es_PolygonOffset);
SET_ReadPixels(exec, _es_ReadPixels);
SET_ReleaseShaderCompiler(exec, _es_ReleaseShaderCompiler);
SET_RenderbufferStorage(exec, _check_RenderbufferStorage);
SET_SampleCoverage(exec, _es_SampleCoverage);
SET_Scissor(exec, _es_Scissor);
SET_ShaderBinary(exec, _es_ShaderBinary);
SET_ShaderSource(exec, _es_ShaderSource);
SET_StencilFunc(exec, _es_StencilFunc);
SET_StencilFuncSeparate(exec, _es_StencilFuncSeparate);
SET_StencilMask(exec, _es_StencilMask);
SET_StencilMaskSeparate(exec, _es_StencilMaskSeparate);
SET_StencilOp(exec, _es_StencilOp);
SET_StencilOpSeparate(exec, _es_StencilOpSeparate);
SET_TexImage2D(exec, _es_TexImage2D);
SET_TexImage3DOES(exec, _es_TexImage3DOES);
SET_TexParameterf(exec, _es_TexParameterf);
SET_TexParameterfv(exec, _es_TexParameterfv);
SET_TexParameteri(exec, _es_TexParameteri);
SET_TexParameteriv(exec, _es_TexParameteriv);
SET_TexSubImage2D(exec, _es_TexSubImage2D);
SET_TexSubImage3DOES(exec, _es_TexSubImage3DOES);
SET_Uniform1f(exec, _es_Uniform1f);
SET_Uniform1fv(exec, _es_Uniform1fv);
SET_Uniform1i(exec, _es_Uniform1i);
SET_Uniform1iv(exec, _es_Uniform1iv);
SET_Uniform2f(exec, _es_Uniform2f);
SET_Uniform2fv(exec, _es_Uniform2fv);
SET_Uniform2i(exec, _es_Uniform2i);
SET_Uniform2iv(exec, _es_Uniform2iv);
SET_Uniform3f(exec, _es_Uniform3f);
SET_Uniform3fv(exec, _es_Uniform3fv);
SET_Uniform3i(exec, _es_Uniform3i);
SET_Uniform3iv(exec, _es_Uniform3iv);
SET_Uniform4f(exec, _es_Uniform4f);
SET_Uniform4fv(exec, _es_Uniform4fv);
SET_Uniform4i(exec, _es_Uniform4i);
SET_Uniform4iv(exec, _es_Uniform4iv);
SET_UniformMatrix2fv(exec, _es_UniformMatrix2fv);
SET_UniformMatrix3fv(exec, _es_UniformMatrix3fv);
SET_UniformMatrix4fv(exec, _es_UniformMatrix4fv);
SET_UnmapBufferOES(exec, _es_UnmapBufferOES);
SET_UseProgram(exec, _es_UseProgram);
SET_ValidateProgram(exec, _es_ValidateProgram);
SET_VertexAttrib1f(exec, _es_VertexAttrib1f);
SET_VertexAttrib1fv(exec, _es_VertexAttrib1fv);
SET_VertexAttrib2f(exec, _es_VertexAttrib2f);
SET_VertexAttrib2fv(exec, _es_VertexAttrib2fv);
SET_VertexAttrib3f(exec, _es_VertexAttrib3f);
SET_VertexAttrib3fv(exec, _es_VertexAttrib3fv);
SET_VertexAttrib4f(exec, _es_VertexAttrib4f);
SET_VertexAttrib4fv(exec, _es_VertexAttrib4fv);
SET_VertexAttribPointer(exec, _es_VertexAttribPointer);
SET_Viewport(exec, _es_Viewport);
return exec;
}
#endif /* FEATURE_ES2 */
|