public
Created

Wrapping OpenGL calls in error checks

  • Download Gist
gen_debug_header.py
Python
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
#!/usr/bin/env python3
# Originally written by Torsten Becker <torsten.becker@gmail.com> in 2011
 
 
import re
 
gl_function = re.compile(r'^extern\s+(.+)\s+(\w+)\s*\((.+)\)\s*;\s*$')
argument = re.compile(r'(\w+)\s*$')
 
 
print("""/* OpenGL Debug Header, automatically generated... */
 
""")
 
source = []
 
# XXX: Replace gl_header.h with your header file name
with open('gl_header.h') as f:
for line in f:
match = gl_function.match(line)
if match:
return_type = match.group(1)
function_name = match.group(2)
args = match.group(3)
if args.strip() == 'void':
argstring = ''
else:
aaaa = []
new_args = []
for i, a in enumerate(args.split(',')):
if len(a.strip().split(' ')) > 1:
a_match = argument.search(a)
aaaa.append(a_match.group(1))
new_args.append(a)
else:
aaaa.append("_gl_unnamed_arg_%d" % i)
new_args.append(a + " _gl_unnamed_arg_%d" % i)
args = ",".join(new_args)
argstring = ", ".join(aaaa)
 
print("""#define %(function_name)s _gl_debug_error_%(function_name)s
%(return_type)s _gl_debug_error_%(function_name)s(%(args)s);
""" % locals())
 
if return_type != 'void':
source.append("""
%(return_type)s _gl_debug_error_%(function_name)s(%(args)s) {
%(return_type)s var = %(function_name)s(%(argstring)s);
CHECK_GL_ERROR();
return var;
}
""" % locals())
else:
source.append("""
%(return_type)s _gl_debug_error_%(function_name)s(%(args)s) {
%(function_name)s(%(argstring)s);
CHECK_GL_ERROR();
}""" % locals())
 
 
print("""/* OpenGL Debug Source, automatically generated... */
 
#include <OpenGL/gl.h>
#include <stdio.h>
#include <stdarg.h>
 
#define CHECK_GL_ERROR() \\
{ GLenum __error = glGetError(); \\
if(__error) \\
printf("OpenGL error 0x%04X in %s\\n", __error, __FUNCTION__); \\
}
 
""")
 
print("\n".join(source))
gl_debug_overwrites.c
C
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 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969
/* OpenGL Debug Source, automatically generated... */
 
#include <OpenGL/gl.h>
#include <stdio.h>
#include <stdarg.h>
 
#define CHECK_GL_ERROR() \
{ GLenum __error = glGetError(); \
if(__error) \
printf("OpenGL error 0x%04X in %s\n", __error, __FUNCTION__); \
}
 
 
 
void _gl_debug_error_glAccum(GLenum op, GLfloat value) {
glAccum(op, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glAlphaFunc(GLenum func, GLclampf ref) {
glAlphaFunc(func, ref);
CHECK_GL_ERROR();
}
 
GLboolean _gl_debug_error_glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences) {
GLboolean var = glAreTexturesResident(n, textures, residences);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glArrayElement(GLint i) {
glArrayElement(i);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBegin(GLenum mode) {
glBegin(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBindTexture(GLenum target, GLuint texture) {
glBindTexture(target, texture);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap) {
glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
glBlendColor(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBlendEquation(GLenum mode) {
glBlendEquation(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
glBlendEquationSeparate(modeRGB, modeAlpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBlendFunc(GLenum sfactor, GLenum dfactor) {
glBlendFunc(sfactor, dfactor);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCallList(GLuint list) {
glCallList(list);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCallLists(GLsizei n, GLenum type, const GLvoid *lists) {
glCallLists(n, type, lists);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClear(GLbitfield mask) {
glClear(mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) {
glClearAccum(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
glClearColor(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClearDepth(GLclampd depth) {
glClearDepth(depth);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClearIndex(GLfloat c) {
glClearIndex(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClearStencil(GLint s) {
glClearStencil(s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClipPlane(GLenum plane, const GLdouble *equation) {
glClipPlane(plane, equation);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3b(GLbyte red, GLbyte green, GLbyte blue) {
glColor3b(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3bv(const GLbyte *v) {
glColor3bv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3d(GLdouble red, GLdouble green, GLdouble blue) {
glColor3d(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3dv(const GLdouble *v) {
glColor3dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3f(GLfloat red, GLfloat green, GLfloat blue) {
glColor3f(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3fv(const GLfloat *v) {
glColor3fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3i(GLint red, GLint green, GLint blue) {
glColor3i(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3iv(const GLint *v) {
glColor3iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3s(GLshort red, GLshort green, GLshort blue) {
glColor3s(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3sv(const GLshort *v) {
glColor3sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3ub(GLubyte red, GLubyte green, GLubyte blue) {
glColor3ub(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3ubv(const GLubyte *v) {
glColor3ubv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3ui(GLuint red, GLuint green, GLuint blue) {
glColor3ui(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3uiv(const GLuint *v) {
glColor3uiv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3us(GLushort red, GLushort green, GLushort blue) {
glColor3us(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor3usv(const GLushort *v) {
glColor3usv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha) {
glColor4b(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4bv(const GLbyte *v) {
glColor4bv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha) {
glColor4d(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4dv(const GLdouble *v) {
glColor4dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) {
glColor4f(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4fv(const GLfloat *v) {
glColor4fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4i(GLint red, GLint green, GLint blue, GLint alpha) {
glColor4i(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4iv(const GLint *v) {
glColor4iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha) {
glColor4s(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4sv(const GLshort *v) {
glColor4sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) {
glColor4ub(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4ubv(const GLubyte *v) {
glColor4ubv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha) {
glColor4ui(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4uiv(const GLuint *v) {
glColor4uiv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha) {
glColor4us(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColor4usv(const GLushort *v) {
glColor4usv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) {
glColorMask(red, green, blue, alpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColorMaterial(GLenum face, GLenum mode) {
glColorMaterial(face, mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) {
glColorPointer(size, type, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data) {
glColorSubTable(target, start, count, format, type, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table) {
glColorTable(target, internalformat, width, format, type, table);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params) {
glColorTableParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glColorTableParameteriv(GLenum target, GLenum pname, const GLint *params) {
glColorTableParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image) {
glConvolutionFilter1D(target, internalformat, width, format, type, image);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image) {
glConvolutionFilter2D(target, internalformat, width, height, format, type, image);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glConvolutionParameterf(GLenum target, GLenum pname, GLfloat params) {
glConvolutionParameterf(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat *params) {
glConvolutionParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glConvolutionParameteri(GLenum target, GLenum pname, GLint params) {
glConvolutionParameteri(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glConvolutionParameteriv(GLenum target, GLenum pname, const GLint *params) {
glConvolutionParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width) {
glCopyColorSubTable(target, start, x, y, width);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width) {
glCopyColorTable(target, internalformat, x, y, width);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width) {
glCopyConvolutionFilter1D(target, internalformat, x, y, width);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height) {
glCopyConvolutionFilter2D(target, internalformat, x, y, width, height);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) {
glCopyPixels(x, y, width, height, type);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) {
glCopyTexImage1D(target, level, internalformat, x, y, width, border);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) {
glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) {
glCopyTexSubImage1D(target, level, xoffset, x, y, width);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) {
glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) {
glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCullFace(GLenum mode) {
glCullFace(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDeleteLists(GLuint list, GLsizei range) {
glDeleteLists(list, range);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDeleteTextures(GLsizei n, const GLuint *textures) {
glDeleteTextures(n, textures);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDepthFunc(GLenum func) {
glDepthFunc(func);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDepthMask(GLboolean flag) {
glDepthMask(flag);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDepthRange(GLclampd zNear, GLclampd zFar) {
glDepthRange(zNear, zFar);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDisable(GLenum cap) {
glDisable(cap);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDisableClientState(GLenum array) {
glDisableClientState(array);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDrawArrays(GLenum mode, GLint first, GLsizei count) {
glDrawArrays(mode, first, count);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDrawBuffer(GLenum mode) {
glDrawBuffer(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) {
glDrawElements(mode, count, type, indices);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) {
glDrawPixels(width, height, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) {
glDrawRangeElements(mode, start, end, count, type, indices);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEdgeFlag(GLboolean flag) {
glEdgeFlag(flag);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEdgeFlagPointer(GLsizei stride, const GLvoid *pointer) {
glEdgeFlagPointer(stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEdgeFlagv(const GLboolean *flag) {
glEdgeFlagv(flag);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEnable(GLenum cap) {
glEnable(cap);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEnableClientState(GLenum array) {
glEnableClientState(array);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEnd(void) {
glEnd();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEndList(void) {
glEndList();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord1d(GLdouble u) {
glEvalCoord1d(u);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord1dv(const GLdouble *u) {
glEvalCoord1dv(u);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord1f(GLfloat u) {
glEvalCoord1f(u);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord1fv(const GLfloat *u) {
glEvalCoord1fv(u);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord2d(GLdouble u, GLdouble v) {
glEvalCoord2d(u, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord2dv(const GLdouble *u) {
glEvalCoord2dv(u);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord2f(GLfloat u, GLfloat v) {
glEvalCoord2f(u, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalCoord2fv(const GLfloat *u) {
glEvalCoord2fv(u);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalMesh1(GLenum mode, GLint i1, GLint i2) {
glEvalMesh1(mode, i1, i2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) {
glEvalMesh2(mode, i1, i2, j1, j2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalPoint1(GLint i) {
glEvalPoint1(i);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEvalPoint2(GLint i, GLint j) {
glEvalPoint2(i, j);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer) {
glFeedbackBuffer(size, type, buffer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFinish(void) {
glFinish();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFlush(void) {
glFlush();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogf(GLenum pname, GLfloat param) {
glFogf(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogfv(GLenum pname, const GLfloat *params) {
glFogfv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogi(GLenum pname, GLint param) {
glFogi(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogiv(GLenum pname, const GLint *params) {
glFogiv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFrontFace(GLenum mode) {
glFrontFace(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) {
glFrustum(left, right, bottom, top, zNear, zFar);
CHECK_GL_ERROR();
}
 
GLuint _gl_debug_error_glGenLists(GLsizei range) {
GLuint var = glGenLists(range);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glGenTextures(GLsizei n, GLuint *textures) {
glGenTextures(n, textures);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetBooleanv(GLenum pname, GLboolean *params) {
glGetBooleanv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetClipPlane(GLenum plane, GLdouble *equation) {
glGetClipPlane(plane, equation);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table) {
glGetColorTable(target, format, type, table);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params) {
glGetColorTableParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *params) {
glGetColorTableParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image) {
glGetConvolutionFilter(target, format, type, image);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params) {
glGetConvolutionParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params) {
glGetConvolutionParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetDoublev(GLenum pname, GLdouble *params) {
glGetDoublev(pname, params);
CHECK_GL_ERROR();
}
 
GLenum _gl_debug_error_glGetError(void) {
GLenum var = glGetError();
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glGetFloatv(GLenum pname, GLfloat *params) {
glGetFloatv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values) {
glGetHistogram(target, reset, format, type, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params) {
glGetHistogramParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetHistogramParameteriv(GLenum target, GLenum pname, GLint *params) {
glGetHistogramParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetIntegerv(GLenum pname, GLint *params) {
glGetIntegerv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetLightfv(GLenum light, GLenum pname, GLfloat *params) {
glGetLightfv(light, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetLightiv(GLenum light, GLenum pname, GLint *params) {
glGetLightiv(light, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMapdv(GLenum target, GLenum query, GLdouble *v) {
glGetMapdv(target, query, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMapfv(GLenum target, GLenum query, GLfloat *v) {
glGetMapfv(target, query, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMapiv(GLenum target, GLenum query, GLint *v) {
glGetMapiv(target, query, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params) {
glGetMaterialfv(face, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMaterialiv(GLenum face, GLenum pname, GLint *params) {
glGetMaterialiv(face, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values) {
glGetMinmax(target, reset, format, type, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params) {
glGetMinmaxParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params) {
glGetMinmaxParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetPixelMapfv(GLenum map, GLfloat *values) {
glGetPixelMapfv(map, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetPixelMapuiv(GLenum map, GLuint *values) {
glGetPixelMapuiv(map, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetPixelMapusv(GLenum map, GLushort *values) {
glGetPixelMapusv(map, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetPointerv(GLenum pname, GLvoid* *params) {
glGetPointerv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetPolygonStipple(GLubyte *mask) {
glGetPolygonStipple(mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span) {
glGetSeparableFilter(target, format, type, row, column, span);
CHECK_GL_ERROR();
}
 
const GLubyte * _gl_debug_error_glGetString(GLenum name) {
const GLubyte * var = glGetString(name);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params) {
glGetTexEnvfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexEnviv(GLenum target, GLenum pname, GLint *params) {
glGetTexEnviv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params) {
glGetTexGendv(coord, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params) {
glGetTexGenfv(coord, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexGeniv(GLenum coord, GLenum pname, GLint *params) {
glGetTexGeniv(coord, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels) {
glGetTexImage(target, level, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) {
glGetTexLevelParameterfv(target, level, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) {
glGetTexLevelParameteriv(target, level, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params) {
glGetTexParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetTexParameteriv(GLenum target, GLenum pname, GLint *params) {
glGetTexParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glHint(GLenum target, GLenum mode) {
glHint(target, mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink) {
glHistogram(target, width, internalformat, sink);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexMask(GLuint mask) {
glIndexMask(mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer) {
glIndexPointer(type, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexd(GLdouble c) {
glIndexd(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexdv(const GLdouble *c) {
glIndexdv(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexf(GLfloat c) {
glIndexf(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexfv(const GLfloat *c) {
glIndexfv(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexi(GLint c) {
glIndexi(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexiv(const GLint *c) {
glIndexiv(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexs(GLshort c) {
glIndexs(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexsv(const GLshort *c) {
glIndexsv(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexub(GLubyte c) {
glIndexub(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glIndexubv(const GLubyte *c) {
glIndexubv(c);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glInitNames(void) {
glInitNames();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer) {
glInterleavedArrays(format, stride, pointer);
CHECK_GL_ERROR();
}
 
GLboolean _gl_debug_error_glIsEnabled(GLenum cap) {
GLboolean var = glIsEnabled(cap);
CHECK_GL_ERROR();
return var;
}
 
 
GLboolean _gl_debug_error_glIsList(GLuint list) {
GLboolean var = glIsList(list);
CHECK_GL_ERROR();
return var;
}
 
 
GLboolean _gl_debug_error_glIsTexture(GLuint texture) {
GLboolean var = glIsTexture(texture);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glLightModelf(GLenum pname, GLfloat param) {
glLightModelf(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLightModelfv(GLenum pname, const GLfloat *params) {
glLightModelfv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLightModeli(GLenum pname, GLint param) {
glLightModeli(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLightModeliv(GLenum pname, const GLint *params) {
glLightModeliv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLightf(GLenum light, GLenum pname, GLfloat param) {
glLightf(light, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLightfv(GLenum light, GLenum pname, const GLfloat *params) {
glLightfv(light, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLighti(GLenum light, GLenum pname, GLint param) {
glLighti(light, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLightiv(GLenum light, GLenum pname, const GLint *params) {
glLightiv(light, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLineStipple(GLint factor, GLushort pattern) {
glLineStipple(factor, pattern);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLineWidth(GLfloat width) {
glLineWidth(width);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glListBase(GLuint base) {
glListBase(base);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLoadIdentity(void) {
glLoadIdentity();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLoadMatrixd(const GLdouble *m) {
glLoadMatrixd(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLoadMatrixf(const GLfloat *m) {
glLoadMatrixf(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLoadName(GLuint name) {
glLoadName(name);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLogicOp(GLenum opcode) {
glLogicOp(opcode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points) {
glMap1d(target, u1, u2, stride, order, points);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points) {
glMap1f(target, u1, u2, stride, order, points);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points) {
glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points) {
glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMapGrid1d(GLint un, GLdouble u1, GLdouble u2) {
glMapGrid1d(un, u1, u2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMapGrid1f(GLint un, GLfloat u1, GLfloat u2) {
glMapGrid1f(un, u1, u2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2) {
glMapGrid2d(un, u1, u2, vn, v1, v2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2) {
glMapGrid2f(un, u1, u2, vn, v1, v2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMaterialf(GLenum face, GLenum pname, GLfloat param) {
glMaterialf(face, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params) {
glMaterialfv(face, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMateriali(GLenum face, GLenum pname, GLint param) {
glMateriali(face, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMaterialiv(GLenum face, GLenum pname, const GLint *params) {
glMaterialiv(face, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMatrixMode(GLenum mode) {
glMatrixMode(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMinmax(GLenum target, GLenum internalformat, GLboolean sink) {
glMinmax(target, internalformat, sink);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultMatrixd(const GLdouble *m) {
glMultMatrixd(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultMatrixf(const GLfloat *m) {
glMultMatrixf(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNewList(GLuint list, GLenum mode) {
glNewList(list, mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz) {
glNormal3b(nx, ny, nz);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3bv(const GLbyte *v) {
glNormal3bv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz) {
glNormal3d(nx, ny, nz);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3dv(const GLdouble *v) {
glNormal3dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz) {
glNormal3f(nx, ny, nz);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3fv(const GLfloat *v) {
glNormal3fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3i(GLint nx, GLint ny, GLint nz) {
glNormal3i(nx, ny, nz);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3iv(const GLint *v) {
glNormal3iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3s(GLshort nx, GLshort ny, GLshort nz) {
glNormal3s(nx, ny, nz);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormal3sv(const GLshort *v) {
glNormal3sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer) {
glNormalPointer(type, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) {
glOrtho(left, right, bottom, top, zNear, zFar);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPassThrough(GLfloat token) {
glPassThrough(token);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelMapfv(GLenum map, GLint mapsize, const GLfloat *values) {
glPixelMapfv(map, mapsize, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelMapuiv(GLenum map, GLint mapsize, const GLuint *values) {
glPixelMapuiv(map, mapsize, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelMapusv(GLenum map, GLint mapsize, const GLushort *values) {
glPixelMapusv(map, mapsize, values);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelStoref(GLenum pname, GLfloat param) {
glPixelStoref(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelStorei(GLenum pname, GLint param) {
glPixelStorei(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelTransferf(GLenum pname, GLfloat param) {
glPixelTransferf(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelTransferi(GLenum pname, GLint param) {
glPixelTransferi(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPixelZoom(GLfloat xfactor, GLfloat yfactor) {
glPixelZoom(xfactor, yfactor);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPointSize(GLfloat size) {
glPointSize(size);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPolygonMode(GLenum face, GLenum mode) {
glPolygonMode(face, mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPolygonOffset(GLfloat factor, GLfloat units) {
glPolygonOffset(factor, units);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPolygonStipple(const GLubyte *mask) {
glPolygonStipple(mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPopAttrib(void) {
glPopAttrib();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPopClientAttrib(void) {
glPopClientAttrib();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPopMatrix(void) {
glPopMatrix();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPopName(void) {
glPopName();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities) {
glPrioritizeTextures(n, textures, priorities);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPushAttrib(GLbitfield mask) {
glPushAttrib(mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPushClientAttrib(GLbitfield mask) {
glPushClientAttrib(mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPushMatrix(void) {
glPushMatrix();
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPushName(GLuint name) {
glPushName(name);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2d(GLdouble x, GLdouble y) {
glRasterPos2d(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2dv(const GLdouble *v) {
glRasterPos2dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2f(GLfloat x, GLfloat y) {
glRasterPos2f(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2fv(const GLfloat *v) {
glRasterPos2fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2i(GLint x, GLint y) {
glRasterPos2i(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2iv(const GLint *v) {
glRasterPos2iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2s(GLshort x, GLshort y) {
glRasterPos2s(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos2sv(const GLshort *v) {
glRasterPos2sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3d(GLdouble x, GLdouble y, GLdouble z) {
glRasterPos3d(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3dv(const GLdouble *v) {
glRasterPos3dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3f(GLfloat x, GLfloat y, GLfloat z) {
glRasterPos3f(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3fv(const GLfloat *v) {
glRasterPos3fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3i(GLint x, GLint y, GLint z) {
glRasterPos3i(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3iv(const GLint *v) {
glRasterPos3iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3s(GLshort x, GLshort y, GLshort z) {
glRasterPos3s(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos3sv(const GLshort *v) {
glRasterPos3sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w) {
glRasterPos4d(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4dv(const GLdouble *v) {
glRasterPos4dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
glRasterPos4f(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4fv(const GLfloat *v) {
glRasterPos4fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4i(GLint x, GLint y, GLint z, GLint w) {
glRasterPos4i(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4iv(const GLint *v) {
glRasterPos4iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w) {
glRasterPos4s(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRasterPos4sv(const GLshort *v) {
glRasterPos4sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glReadBuffer(GLenum mode) {
glReadBuffer(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) {
glReadPixels(x, y, width, height, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) {
glRectd(x1, y1, x2, y2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRectdv(const GLdouble *v1, const GLdouble *v2) {
glRectdv(v1, v2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) {
glRectf(x1, y1, x2, y2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRectfv(const GLfloat *v1, const GLfloat *v2) {
glRectfv(v1, v2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRecti(GLint x1, GLint y1, GLint x2, GLint y2) {
glRecti(x1, y1, x2, y2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRectiv(const GLint *v1, const GLint *v2) {
glRectiv(v1, v2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2) {
glRects(x1, y1, x2, y2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRectsv(const GLshort *v1, const GLshort *v2) {
glRectsv(v1, v2);
CHECK_GL_ERROR();
}
 
GLint _gl_debug_error_glRenderMode(GLenum mode) {
GLint var = glRenderMode(mode);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glResetHistogram(GLenum target) {
glResetHistogram(target);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glResetMinmax(GLenum target) {
glResetMinmax(target);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z) {
glRotated(angle, x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) {
glRotatef(angle, x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glScaled(GLdouble x, GLdouble y, GLdouble z) {
glScaled(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glScalef(GLfloat x, GLfloat y, GLfloat z) {
glScalef(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glScissor(GLint x, GLint y, GLsizei width, GLsizei height) {
glScissor(x, y, width, height);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSelectBuffer(GLsizei size, GLuint *buffer) {
glSelectBuffer(size, buffer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column) {
glSeparableFilter2D(target, internalformat, width, height, format, type, row, column);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glShadeModel(GLenum mode) {
glShadeModel(mode);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glStencilFunc(GLenum func, GLint ref, GLuint mask) {
glStencilFunc(func, ref, mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glStencilMask(GLuint mask) {
glStencilMask(mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
glStencilOp(fail, zfail, zpass);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1d(GLdouble s) {
glTexCoord1d(s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1dv(const GLdouble *v) {
glTexCoord1dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1f(GLfloat s) {
glTexCoord1f(s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1fv(const GLfloat *v) {
glTexCoord1fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1i(GLint s) {
glTexCoord1i(s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1iv(const GLint *v) {
glTexCoord1iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1s(GLshort s) {
glTexCoord1s(s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord1sv(const GLshort *v) {
glTexCoord1sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2d(GLdouble s, GLdouble t) {
glTexCoord2d(s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2dv(const GLdouble *v) {
glTexCoord2dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2f(GLfloat s, GLfloat t) {
glTexCoord2f(s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2fv(const GLfloat *v) {
glTexCoord2fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2i(GLint s, GLint t) {
glTexCoord2i(s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2iv(const GLint *v) {
glTexCoord2iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2s(GLshort s, GLshort t) {
glTexCoord2s(s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord2sv(const GLshort *v) {
glTexCoord2sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3d(GLdouble s, GLdouble t, GLdouble r) {
glTexCoord3d(s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3dv(const GLdouble *v) {
glTexCoord3dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3f(GLfloat s, GLfloat t, GLfloat r) {
glTexCoord3f(s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3fv(const GLfloat *v) {
glTexCoord3fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3i(GLint s, GLint t, GLint r) {
glTexCoord3i(s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3iv(const GLint *v) {
glTexCoord3iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3s(GLshort s, GLshort t, GLshort r) {
glTexCoord3s(s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord3sv(const GLshort *v) {
glTexCoord3sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q) {
glTexCoord4d(s, t, r, q);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4dv(const GLdouble *v) {
glTexCoord4dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q) {
glTexCoord4f(s, t, r, q);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4fv(const GLfloat *v) {
glTexCoord4fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4i(GLint s, GLint t, GLint r, GLint q) {
glTexCoord4i(s, t, r, q);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4iv(const GLint *v) {
glTexCoord4iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q) {
glTexCoord4s(s, t, r, q);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoord4sv(const GLshort *v) {
glTexCoord4sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) {
glTexCoordPointer(size, type, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexEnvf(GLenum target, GLenum pname, GLfloat param) {
glTexEnvf(target, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params) {
glTexEnvfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexEnvi(GLenum target, GLenum pname, GLint param) {
glTexEnvi(target, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexEnviv(GLenum target, GLenum pname, const GLint *params) {
glTexEnviv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexGend(GLenum coord, GLenum pname, GLdouble param) {
glTexGend(coord, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexGendv(GLenum coord, GLenum pname, const GLdouble *params) {
glTexGendv(coord, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexGenf(GLenum coord, GLenum pname, GLfloat param) {
glTexGenf(coord, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexGenfv(GLenum coord, GLenum pname, const GLfloat *params) {
glTexGenfv(coord, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexGeni(GLenum coord, GLenum pname, GLint param) {
glTexGeni(coord, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexGeniv(GLenum coord, GLenum pname, const GLint *params) {
glTexGeniv(coord, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels) {
glTexImage1D(target, level, internalformat, width, border, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) {
glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels) {
glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexParameterf(GLenum target, GLenum pname, GLfloat param) {
glTexParameterf(target, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params) {
glTexParameterfv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexParameteri(GLenum target, GLenum pname, GLint param) {
glTexParameteri(target, pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexParameteriv(GLenum target, GLenum pname, const GLint *params) {
glTexParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) {
glTexSubImage1D(target, level, xoffset, width, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) {
glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) {
glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTranslated(GLdouble x, GLdouble y, GLdouble z) {
glTranslated(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glTranslatef(GLfloat x, GLfloat y, GLfloat z) {
glTranslatef(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2d(GLdouble x, GLdouble y) {
glVertex2d(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2dv(const GLdouble *v) {
glVertex2dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2f(GLfloat x, GLfloat y) {
glVertex2f(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2fv(const GLfloat *v) {
glVertex2fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2i(GLint x, GLint y) {
glVertex2i(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2iv(const GLint *v) {
glVertex2iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2s(GLshort x, GLshort y) {
glVertex2s(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex2sv(const GLshort *v) {
glVertex2sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3d(GLdouble x, GLdouble y, GLdouble z) {
glVertex3d(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3dv(const GLdouble *v) {
glVertex3dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3f(GLfloat x, GLfloat y, GLfloat z) {
glVertex3f(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3fv(const GLfloat *v) {
glVertex3fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3i(GLint x, GLint y, GLint z) {
glVertex3i(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3iv(const GLint *v) {
glVertex3iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3s(GLshort x, GLshort y, GLshort z) {
glVertex3s(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex3sv(const GLshort *v) {
glVertex3sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w) {
glVertex4d(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4dv(const GLdouble *v) {
glVertex4dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
glVertex4f(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4fv(const GLfloat *v) {
glVertex4fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4i(GLint x, GLint y, GLint z, GLint w) {
glVertex4i(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4iv(const GLint *v) {
glVertex4iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w) {
glVertex4s(x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertex4sv(const GLshort *v) {
glVertex4sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) {
glVertexPointer(size, type, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glViewport(GLint x, GLint y, GLsizei width, GLsizei height) {
glViewport(x, y, width, height);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSampleCoverage(GLclampf value, GLboolean invert) {
glSampleCoverage(value, invert);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSamplePass(GLenum pass) {
glSamplePass(pass);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLoadTransposeMatrixf(const GLfloat *m) {
glLoadTransposeMatrixf(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLoadTransposeMatrixd(const GLdouble *m) {
glLoadTransposeMatrixd(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultTransposeMatrixf(const GLfloat *m) {
glMultTransposeMatrixf(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultTransposeMatrixd(const GLdouble *m) {
glMultTransposeMatrixd(m);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data) {
glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) {
glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data) {
glCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data) {
glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data) {
glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data) {
glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetCompressedTexImage(GLenum target, GLint lod, GLvoid *img) {
glGetCompressedTexImage(target, lod, img);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glActiveTexture(GLenum texture) {
glActiveTexture(texture);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glClientActiveTexture(GLenum texture) {
glClientActiveTexture(texture);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1d(GLenum target, GLdouble s) {
glMultiTexCoord1d(target, s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1dv(GLenum target, const GLdouble *v) {
glMultiTexCoord1dv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1f(GLenum target, GLfloat s) {
glMultiTexCoord1f(target, s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1fv(GLenum target, const GLfloat *v) {
glMultiTexCoord1fv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1i(GLenum target, GLint s) {
glMultiTexCoord1i(target, s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1iv(GLenum target, const GLint *v) {
glMultiTexCoord1iv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1s(GLenum target, GLshort s) {
glMultiTexCoord1s(target, s);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord1sv(GLenum target, const GLshort *v) {
glMultiTexCoord1sv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t) {
glMultiTexCoord2d(target, s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2dv(GLenum target, const GLdouble *v) {
glMultiTexCoord2dv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t) {
glMultiTexCoord2f(target, s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2fv(GLenum target, const GLfloat *v) {
glMultiTexCoord2fv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2i(GLenum target, GLint s, GLint t) {
glMultiTexCoord2i(target, s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2iv(GLenum target, const GLint *v) {
glMultiTexCoord2iv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2s(GLenum target, GLshort s, GLshort t) {
glMultiTexCoord2s(target, s, t);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord2sv(GLenum target, const GLshort *v) {
glMultiTexCoord2sv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t, GLdouble r) {
glMultiTexCoord3d(target, s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3dv(GLenum target, const GLdouble *v) {
glMultiTexCoord3dv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r) {
glMultiTexCoord3f(target, s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3fv(GLenum target, const GLfloat *v) {
glMultiTexCoord3fv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r) {
glMultiTexCoord3i(target, s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3iv(GLenum target, const GLint *v) {
glMultiTexCoord3iv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r) {
glMultiTexCoord3s(target, s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord3sv(GLenum target, const GLshort *v) {
glMultiTexCoord3sv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q) {
glMultiTexCoord4d(target, s, t, r, q);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4dv(GLenum target, const GLdouble *v) {
glMultiTexCoord4dv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) {
glMultiTexCoord4f(target, s, t, r, q);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4fv(GLenum target, const GLfloat *v) {
glMultiTexCoord4fv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4i(GLenum target, GLint _gl_unnamed_arg_1, GLint s, GLint t, GLint r) {
glMultiTexCoord4i(target, _gl_unnamed_arg_1, s, t, r);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4iv(GLenum target, const GLint *v) {
glMultiTexCoord4iv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q) {
glMultiTexCoord4s(target, s, t, r, q);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiTexCoord4sv(GLenum target, const GLshort *v) {
glMultiTexCoord4sv(target, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogCoordf(GLfloat coord) {
glFogCoordf(coord);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogCoordfv(const GLfloat *coord) {
glFogCoordfv(coord);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogCoordd(GLdouble coord) {
glFogCoordd(coord);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogCoorddv(const GLdouble * coord) {
glFogCoorddv(coord);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glFogCoordPointer(GLenum type, GLsizei stride, const GLvoid *pointer) {
glFogCoordPointer(type, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue) {
glSecondaryColor3b(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3bv(const GLbyte *v) {
glSecondaryColor3bv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue) {
glSecondaryColor3d(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3dv(const GLdouble *v) {
glSecondaryColor3dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3f(GLfloat red, GLfloat green, GLfloat blue) {
glSecondaryColor3f(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3fv(const GLfloat *v) {
glSecondaryColor3fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3i(GLint red, GLint green, GLint blue) {
glSecondaryColor3i(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3iv(const GLint *v) {
glSecondaryColor3iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3s(GLshort red, GLshort green, GLshort blue) {
glSecondaryColor3s(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3sv(const GLshort *v) {
glSecondaryColor3sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue) {
glSecondaryColor3ub(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3ubv(const GLubyte *v) {
glSecondaryColor3ubv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue) {
glSecondaryColor3ui(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3uiv(const GLuint *v) {
glSecondaryColor3uiv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3us(GLushort red, GLushort green, GLushort blue) {
glSecondaryColor3us(red, green, blue);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColor3usv(const GLushort *v) {
glSecondaryColor3usv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glSecondaryColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) {
glSecondaryColorPointer(size, type, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPointParameterf(GLenum pname, GLfloat param) {
glPointParameterf(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPointParameterfv(GLenum pname, const GLfloat *params) {
glPointParameterfv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPointParameteri(GLenum pname, GLint param) {
glPointParameteri(pname, param);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glPointParameteriv(GLenum pname, const GLint *params) {
glPointParameteriv(pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) {
glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount) {
glMultiDrawArrays(mode, first, count, primcount);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount) {
glMultiDrawElements(mode, count, type, indices, primcount);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2d(GLdouble x, GLdouble y) {
glWindowPos2d(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2dv(const GLdouble *v) {
glWindowPos2dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2f(GLfloat x, GLfloat y) {
glWindowPos2f(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2fv(const GLfloat *v) {
glWindowPos2fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2i(GLint x, GLint y) {
glWindowPos2i(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2iv(const GLint *v) {
glWindowPos2iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2s(GLshort x, GLshort y) {
glWindowPos2s(x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos2sv(const GLshort *v) {
glWindowPos2sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3d(GLdouble x, GLdouble y, GLdouble z) {
glWindowPos3d(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3dv(const GLdouble *v) {
glWindowPos3dv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3f(GLfloat x, GLfloat y, GLfloat z) {
glWindowPos3f(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3fv(const GLfloat *v) {
glWindowPos3fv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3i(GLint x, GLint y, GLint z) {
glWindowPos3i(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3iv(const GLint *v) {
glWindowPos3iv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3s(GLshort x, GLshort y, GLshort z) {
glWindowPos3s(x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glWindowPos3sv(const GLshort *v) {
glWindowPos3sv(v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGenQueries(GLsizei n, GLuint *ids) {
glGenQueries(n, ids);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDeleteQueries(GLsizei n, const GLuint *ids) {
glDeleteQueries(n, ids);
CHECK_GL_ERROR();
}
 
GLboolean _gl_debug_error_glIsQuery(GLuint id) {
GLboolean var = glIsQuery(id);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glBeginQuery(GLenum target, GLuint id) {
glBeginQuery(target, id);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEndQuery(GLenum target) {
glEndQuery(target);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetQueryiv(GLenum target, GLenum pname, GLint *params) {
glGetQueryiv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params) {
glGetQueryObjectiv(id, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) {
glGetQueryObjectuiv(id, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBindBuffer(GLenum target, GLuint buffer) {
glBindBuffer(target, buffer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDeleteBuffers(GLsizei n, const GLuint *buffers) {
glDeleteBuffers(n, buffers);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGenBuffers(GLsizei n, GLuint *buffers) {
glGenBuffers(n, buffers);
CHECK_GL_ERROR();
}
 
GLboolean _gl_debug_error_glIsBuffer(GLuint buffer) {
GLboolean var = glIsBuffer(buffer);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage) {
glBufferData(target, size, data, usage);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data) {
glBufferSubData(target, offset, size, data);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data) {
glGetBufferSubData(target, offset, size, data);
CHECK_GL_ERROR();
}
 
GLvoid * _gl_debug_error_glMapBuffer(GLenum target, GLenum access) {
GLvoid * var = glMapBuffer(target, access);
CHECK_GL_ERROR();
return var;
}
 
 
GLboolean _gl_debug_error_glUnmapBuffer(GLenum target) {
GLboolean var = glUnmapBuffer(target);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params) {
glGetBufferParameteriv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetBufferPointerv(GLenum target, GLenum pname, GLvoid **params) {
glGetBufferPointerv(target, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDrawBuffers(GLsizei n, const GLenum *bufs) {
glDrawBuffers(n, bufs);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib1d(GLuint index, GLdouble x) {
glVertexAttrib1d(index, x);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib1dv(GLuint index, const GLdouble *v) {
glVertexAttrib1dv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib1f(GLuint index, GLfloat x) {
glVertexAttrib1f(index, x);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib1fv(GLuint index, const GLfloat *v) {
glVertexAttrib1fv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib1s(GLuint index, GLshort x) {
glVertexAttrib1s(index, x);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib1sv(GLuint index, const GLshort *v) {
glVertexAttrib1sv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y) {
glVertexAttrib2d(index, x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib2dv(GLuint index, const GLdouble *v) {
glVertexAttrib2dv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y) {
glVertexAttrib2f(index, x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib2fv(GLuint index, const GLfloat *v) {
glVertexAttrib2fv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib2s(GLuint index, GLshort x, GLshort y) {
glVertexAttrib2s(index, x, y);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib2sv(GLuint index, const GLshort *v) {
glVertexAttrib2sv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z) {
glVertexAttrib3d(index, x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib3dv(GLuint index, const GLdouble *v) {
glVertexAttrib3dv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) {
glVertexAttrib3f(index, x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib3fv(GLuint index, const GLfloat *v) {
glVertexAttrib3fv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z) {
glVertexAttrib3s(index, x, y, z);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib3sv(GLuint index, const GLshort *v) {
glVertexAttrib3sv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4Nbv(GLuint index, const GLbyte *v) {
glVertexAttrib4Nbv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4Niv(GLuint index, const GLint *v) {
glVertexAttrib4Niv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4Nsv(GLuint index, const GLshort *v) {
glVertexAttrib4Nsv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) {
glVertexAttrib4Nub(index, x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4Nubv(GLuint index, const GLubyte *v) {
glVertexAttrib4Nubv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4Nuiv(GLuint index, const GLuint *v) {
glVertexAttrib4Nuiv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4Nusv(GLuint index, const GLushort *v) {
glVertexAttrib4Nusv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4bv(GLuint index, const GLbyte *v) {
glVertexAttrib4bv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) {
glVertexAttrib4d(index, x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4dv(GLuint index, const GLdouble *v) {
glVertexAttrib4dv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
glVertexAttrib4f(index, x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4fv(GLuint index, const GLfloat *v) {
glVertexAttrib4fv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4iv(GLuint index, const GLint *v) {
glVertexAttrib4iv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) {
glVertexAttrib4s(index, x, y, z, w);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4sv(GLuint index, const GLshort *v) {
glVertexAttrib4sv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4ubv(GLuint index, const GLubyte *v) {
glVertexAttrib4ubv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4uiv(GLuint index, const GLuint *v) {
glVertexAttrib4uiv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttrib4usv(GLuint index, const GLushort *v) {
glVertexAttrib4usv(index, v);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer) {
glVertexAttribPointer(index, size, type, normalized, stride, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glEnableVertexAttribArray(GLuint index) {
glEnableVertexAttribArray(index);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDisableVertexAttribArray(GLuint index) {
glDisableVertexAttribArray(index);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params) {
glGetVertexAttribdv(index, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) {
glGetVertexAttribfv(index, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params) {
glGetVertexAttribiv(index, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer) {
glGetVertexAttribPointerv(index, pname, pointer);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDeleteShader(GLuint shader) {
glDeleteShader(shader);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDetachShader(GLuint program, GLuint shader) {
glDetachShader(program, shader);
CHECK_GL_ERROR();
}
 
GLuint _gl_debug_error_glCreateShader(GLenum type) {
GLuint var = glCreateShader(type);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glShaderSource(GLuint shader, GLsizei count, const GLchar* *string, const GLint *length) {
glShaderSource(shader, count, string, length);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glCompileShader(GLuint shader) {
glCompileShader(shader);
CHECK_GL_ERROR();
}
 
GLuint _gl_debug_error_glCreateProgram(void) {
GLuint var = glCreateProgram();
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glAttachShader(GLuint program, GLuint shader) {
glAttachShader(program, shader);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glLinkProgram(GLuint program) {
glLinkProgram(program);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUseProgram(GLuint program) {
glUseProgram(program);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glDeleteProgram(GLuint program) {
glDeleteProgram(program);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glValidateProgram(GLuint program) {
glValidateProgram(program);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform1f(GLint location, GLfloat v0) {
glUniform1f(location, v0);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform2f(GLint location, GLfloat v0, GLfloat v1) {
glUniform2f(location, v0, v1);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) {
glUniform3f(location, v0, v1, v2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) {
glUniform4f(location, v0, v1, v2, v3);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform1i(GLint location, GLint v0) {
glUniform1i(location, v0);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform2i(GLint location, GLint v0, GLint v1) {
glUniform2i(location, v0, v1);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) {
glUniform3i(location, v0, v1, v2);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) {
glUniform4i(location, v0, v1, v2, v3);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform1fv(GLint location, GLsizei count, const GLfloat *value) {
glUniform1fv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform2fv(GLint location, GLsizei count, const GLfloat *value) {
glUniform2fv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform3fv(GLint location, GLsizei count, const GLfloat *value) {
glUniform3fv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform4fv(GLint location, GLsizei count, const GLfloat *value) {
glUniform4fv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform1iv(GLint location, GLsizei count, const GLint *value) {
glUniform1iv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform2iv(GLint location, GLsizei count, const GLint *value) {
glUniform2iv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform3iv(GLint location, GLsizei count, const GLint *value) {
glUniform3iv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniform4iv(GLint location, GLsizei count, const GLint *value) {
glUniform4iv(location, count, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix2fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix3fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix4fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
GLboolean _gl_debug_error_glIsShader(GLuint shader) {
GLboolean var = glIsShader(shader);
CHECK_GL_ERROR();
return var;
}
 
 
GLboolean _gl_debug_error_glIsProgram(GLuint program) {
GLboolean var = glIsProgram(program);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glGetShaderiv(GLuint shader, GLenum pname, GLint *params) {
glGetShaderiv(shader, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetProgramiv(GLuint program, GLenum pname, GLint *params) {
glGetProgramiv(program, pname, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders) {
glGetAttachedShaders(program, maxCount, count, shaders);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) {
glGetShaderInfoLog(shader, bufSize, length, infoLog);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog) {
glGetProgramInfoLog(program, bufSize, length, infoLog);
CHECK_GL_ERROR();
}
 
GLint _gl_debug_error_glGetUniformLocation(GLuint program, const GLchar *name) {
GLint var = glGetUniformLocation(program, name);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) {
glGetActiveUniform(program, index, bufSize, length, size, type, name);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetUniformfv(GLuint program, GLint location, GLfloat *params) {
glGetUniformfv(program, location, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetUniformiv(GLuint program, GLint location, GLint *params) {
glGetUniformiv(program, location, params);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source) {
glGetShaderSource(shader, bufSize, length, source);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glBindAttribLocation(GLuint program, GLuint index, const GLchar *name) {
glBindAttribLocation(program, index, name);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) {
glGetActiveAttrib(program, index, bufSize, length, size, type, name);
CHECK_GL_ERROR();
}
 
GLint _gl_debug_error_glGetAttribLocation(GLuint program, const GLchar *name) {
GLint var = glGetAttribLocation(program, name);
CHECK_GL_ERROR();
return var;
}
 
 
void _gl_debug_error_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) {
glStencilFuncSeparate(face, func, ref, mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) {
glStencilOpSeparate(face, fail, zfail, zpass);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glStencilMaskSeparate(GLenum face, GLuint mask) {
glStencilMaskSeparate(face, mask);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix2x3fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix3x2fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix2x4fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix4x2fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix3x4fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
 
void _gl_debug_error_glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) {
glUniformMatrix4x3fv(location, count, transpose, value);
CHECK_GL_ERROR();
}
gl_debug_overwrites.h
C
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