1848b8605Smrg/* 2848b8605Smrg * Copyright © 2012 Intel Corporation 3848b8605Smrg * 4848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a 5848b8605Smrg * copy of this software and associated documentation files (the "Software"), 6848b8605Smrg * to deal in the Software without restriction, including without limitation 7848b8605Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8848b8605Smrg * and/or sell copies of the Software, and to permit persons to whom the 9848b8605Smrg * Software is furnished to do so, subject to the following conditions: 10848b8605Smrg * 11848b8605Smrg * The above copyright notice and this permission notice (including the next 12848b8605Smrg * paragraph) shall be included in all copies or substantial portions of the 13848b8605Smrg * Software. 14848b8605Smrg * 15848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16848b8605Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17848b8605Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18848b8605Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19848b8605Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20848b8605Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21848b8605Smrg * DEALINGS IN THE SOFTWARE. 22848b8605Smrg */ 23848b8605Smrg 24848b8605Smrg/** 25848b8605Smrg * \file indirect_api.cpp 26848b8605Smrg * Validate the generated code in indirect_init.c 27848b8605Smrg * 28848b8605Smrg * Tests various apsects of the dispatch table generated by 29848b8605Smrg * \c __glXNewIndirectAPI. 30848b8605Smrg * 31848b8605Smrg * * No entry in the table should be \c NULL. 32848b8605Smrg * 33848b8605Smrg * * Entries in the table that correspond to "known" functions with GLX 34848b8605Smrg * protocol should point to the correct function. 35848b8605Smrg * 36848b8605Smrg * * Entries beyond the end of the "known" part of the table (i.e., entries 37848b8605Smrg * that can be allocated by drivers for extensions) should point to a 38848b8605Smrg * no-op function. 39848b8605Smrg * 40848b8605Smrg * * Entries in the table that correspond to "known" functions that lack 41848b8605Smrg * GLX protocol should point to a no-op function. 42848b8605Smrg * 43848b8605Smrg * Very few entries in the last catogory are tests. See \c OpenGL_20_is_nop. 44848b8605Smrg */ 45848b8605Smrg 46848b8605Smrg#include <gtest/gtest.h> 47848b8605Smrg#include "main/glheader.h" 48848b8605Smrg#include "../indirect_init.h" 49848b8605Smrg#include "glapi/glapi.h" 50848b8605Smrg#include "../../mesa/main/dispatch.h" 51848b8605Smrg 52848b8605Smrgstatic const void *nil = 0; 53848b8605Smrg 54848b8605Smrg#define EXTRA_DISPATCH 111 55848b8605Smrg 56848b8605Smrgstatic bool dispatch_table_size_was_queried = false; 57848b8605Smrg 58848b8605Smrgextern "C" GLuint 59848b8605Smrg_glapi_get_dispatch_table_size(void) 60848b8605Smrg{ 61848b8605Smrg dispatch_table_size_was_queried = true; 62848b8605Smrg return _gloffset_COUNT + EXTRA_DISPATCH; 63848b8605Smrg} 64848b8605Smrg 65848b8605Smrg/** 66848b8605Smrg * \name Indirect-rendering function stubs 67848b8605Smrg * 68848b8605Smrg * These are necessary so that indirect_init.c doesn't try to link with 69848b8605Smrg * indirect.c. Linking with indirect.c would require linking with various X 70848b8605Smrg * libraries and a bunch of other stuff. While this is ugly, it does simplify 71848b8605Smrg * the build quite a bit. 72848b8605Smrg */ 73848b8605Smrg/*@{*/ 74848b8605Smrgextern "C" { 75848b8605Smrgvoid __indirect_glAccum(void) { } 76848b8605Smrgvoid __indirect_glAlphaFunc(void) { } 77848b8605Smrgvoid __indirect_glBegin(void) { } 78848b8605Smrgvoid __indirect_glBitmap(void) { } 79848b8605Smrgvoid __indirect_glBlendFunc(void) { } 80848b8605Smrgvoid __indirect_glCallList(void) { } 81848b8605Smrgvoid __indirect_glCallLists(void) { } 82848b8605Smrgvoid __indirect_glClear(void) { } 83848b8605Smrgvoid __indirect_glClearAccum(void) { } 84848b8605Smrgvoid __indirect_glClearColor(void) { } 85848b8605Smrgvoid __indirect_glClearDepth(void) { } 86848b8605Smrgvoid __indirect_glClearIndex(void) { } 87848b8605Smrgvoid __indirect_glClearStencil(void) { } 88848b8605Smrgvoid __indirect_glClipPlane(void) { } 89848b8605Smrgvoid __indirect_glColor3b(void) { } 90848b8605Smrgvoid __indirect_glColor3bv(void) { } 91848b8605Smrgvoid __indirect_glColor3d(void) { } 92848b8605Smrgvoid __indirect_glColor3dv(void) { } 93848b8605Smrgvoid __indirect_glColor3f(void) { } 94848b8605Smrgvoid __indirect_glColor3fv(void) { } 95848b8605Smrgvoid __indirect_glColor3i(void) { } 96848b8605Smrgvoid __indirect_glColor3iv(void) { } 97848b8605Smrgvoid __indirect_glColor3s(void) { } 98848b8605Smrgvoid __indirect_glColor3sv(void) { } 99848b8605Smrgvoid __indirect_glColor3ub(void) { } 100848b8605Smrgvoid __indirect_glColor3ubv(void) { } 101848b8605Smrgvoid __indirect_glColor3ui(void) { } 102848b8605Smrgvoid __indirect_glColor3uiv(void) { } 103848b8605Smrgvoid __indirect_glColor3us(void) { } 104848b8605Smrgvoid __indirect_glColor3usv(void) { } 105848b8605Smrgvoid __indirect_glColor4b(void) { } 106848b8605Smrgvoid __indirect_glColor4bv(void) { } 107848b8605Smrgvoid __indirect_glColor4d(void) { } 108848b8605Smrgvoid __indirect_glColor4dv(void) { } 109848b8605Smrgvoid __indirect_glColor4f(void) { } 110848b8605Smrgvoid __indirect_glColor4fv(void) { } 111848b8605Smrgvoid __indirect_glColor4i(void) { } 112848b8605Smrgvoid __indirect_glColor4iv(void) { } 113848b8605Smrgvoid __indirect_glColor4s(void) { } 114848b8605Smrgvoid __indirect_glColor4sv(void) { } 115848b8605Smrgvoid __indirect_glColor4ub(void) { } 116848b8605Smrgvoid __indirect_glColor4ubv(void) { } 117848b8605Smrgvoid __indirect_glColor4ui(void) { } 118848b8605Smrgvoid __indirect_glColor4uiv(void) { } 119848b8605Smrgvoid __indirect_glColor4us(void) { } 120848b8605Smrgvoid __indirect_glColor4usv(void) { } 121848b8605Smrgvoid __indirect_glColorMask(void) { } 122848b8605Smrgvoid __indirect_glColorMaterial(void) { } 123848b8605Smrgvoid __indirect_glCopyPixels(void) { } 124848b8605Smrgvoid __indirect_glCullFace(void) { } 125848b8605Smrgvoid __indirect_glDeleteLists(void) { } 126848b8605Smrgvoid __indirect_glDepthFunc(void) { } 127848b8605Smrgvoid __indirect_glDepthMask(void) { } 128848b8605Smrgvoid __indirect_glDepthRange(void) { } 129848b8605Smrgvoid __indirect_glDisable(void) { } 130848b8605Smrgvoid __indirect_glDrawBuffer(void) { } 131848b8605Smrgvoid __indirect_glDrawPixels(void) { } 132848b8605Smrgvoid __indirect_glEdgeFlag(void) { } 133848b8605Smrgvoid __indirect_glEdgeFlagv(void) { } 134848b8605Smrgvoid __indirect_glEnable(void) { } 135848b8605Smrgvoid __indirect_glEnd(void) { } 136848b8605Smrgvoid __indirect_glEndList(void) { } 137848b8605Smrgvoid __indirect_glEvalCoord1d(void) { } 138848b8605Smrgvoid __indirect_glEvalCoord1dv(void) { } 139848b8605Smrgvoid __indirect_glEvalCoord1f(void) { } 140848b8605Smrgvoid __indirect_glEvalCoord1fv(void) { } 141848b8605Smrgvoid __indirect_glEvalCoord2d(void) { } 142848b8605Smrgvoid __indirect_glEvalCoord2dv(void) { } 143848b8605Smrgvoid __indirect_glEvalCoord2f(void) { } 144848b8605Smrgvoid __indirect_glEvalCoord2fv(void) { } 145848b8605Smrgvoid __indirect_glEvalMesh1(void) { } 146848b8605Smrgvoid __indirect_glEvalMesh2(void) { } 147848b8605Smrgvoid __indirect_glEvalPoint1(void) { } 148848b8605Smrgvoid __indirect_glEvalPoint2(void) { } 149848b8605Smrgvoid __indirect_glFeedbackBuffer(void) { } 150848b8605Smrgvoid __indirect_glFinish(void) { } 151848b8605Smrgvoid __indirect_glFlush(void) { } 152848b8605Smrgvoid __indirect_glFogf(void) { } 153848b8605Smrgvoid __indirect_glFogfv(void) { } 154848b8605Smrgvoid __indirect_glFogi(void) { } 155848b8605Smrgvoid __indirect_glFogiv(void) { } 156848b8605Smrgvoid __indirect_glFrontFace(void) { } 157848b8605Smrgvoid __indirect_glFrustum(void) { } 158848b8605Smrgvoid __indirect_glGenLists(void) { } 159848b8605Smrgvoid __indirect_glGetBooleanv(void) { } 160848b8605Smrgvoid __indirect_glGetClipPlane(void) { } 161848b8605Smrgvoid __indirect_glGetDoublev(void) { } 162848b8605Smrgvoid __indirect_glGetError(void) { } 163848b8605Smrgvoid __indirect_glGetFloatv(void) { } 164848b8605Smrgvoid __indirect_glGetIntegerv(void) { } 165848b8605Smrgvoid __indirect_glGetLightfv(void) { } 166848b8605Smrgvoid __indirect_glGetLightiv(void) { } 167848b8605Smrgvoid __indirect_glGetMapdv(void) { } 168848b8605Smrgvoid __indirect_glGetMapfv(void) { } 169848b8605Smrgvoid __indirect_glGetMapiv(void) { } 170848b8605Smrgvoid __indirect_glGetMaterialfv(void) { } 171848b8605Smrgvoid __indirect_glGetMaterialiv(void) { } 172848b8605Smrgvoid __indirect_glGetPixelMapfv(void) { } 173848b8605Smrgvoid __indirect_glGetPixelMapuiv(void) { } 174848b8605Smrgvoid __indirect_glGetPixelMapusv(void) { } 175848b8605Smrgvoid __indirect_glGetPolygonStipple(void) { } 176848b8605Smrgvoid __indirect_glGetString(void) { } 177848b8605Smrgvoid __indirect_glGetTexEnvfv(void) { } 178848b8605Smrgvoid __indirect_glGetTexEnviv(void) { } 179848b8605Smrgvoid __indirect_glGetTexGendv(void) { } 180848b8605Smrgvoid __indirect_glGetTexGenfv(void) { } 181848b8605Smrgvoid __indirect_glGetTexGeniv(void) { } 182848b8605Smrgvoid __indirect_glGetTexImage(void) { } 183848b8605Smrgvoid __indirect_glGetTexLevelParameterfv(void) { } 184848b8605Smrgvoid __indirect_glGetTexLevelParameteriv(void) { } 185848b8605Smrgvoid __indirect_glGetTexParameterfv(void) { } 186848b8605Smrgvoid __indirect_glGetTexParameteriv(void) { } 187848b8605Smrgvoid __indirect_glHint(void) { } 188848b8605Smrgvoid __indirect_glIndexMask(void) { } 189848b8605Smrgvoid __indirect_glIndexd(void) { } 190848b8605Smrgvoid __indirect_glIndexdv(void) { } 191848b8605Smrgvoid __indirect_glIndexf(void) { } 192848b8605Smrgvoid __indirect_glIndexfv(void) { } 193848b8605Smrgvoid __indirect_glIndexi(void) { } 194848b8605Smrgvoid __indirect_glIndexiv(void) { } 195848b8605Smrgvoid __indirect_glIndexs(void) { } 196848b8605Smrgvoid __indirect_glIndexsv(void) { } 197848b8605Smrgvoid __indirect_glInitNames(void) { } 198848b8605Smrgvoid __indirect_glIsEnabled(void) { } 199848b8605Smrgvoid __indirect_glIsList(void) { } 200848b8605Smrgvoid __indirect_glLightModelf(void) { } 201848b8605Smrgvoid __indirect_glLightModelfv(void) { } 202848b8605Smrgvoid __indirect_glLightModeli(void) { } 203848b8605Smrgvoid __indirect_glLightModeliv(void) { } 204848b8605Smrgvoid __indirect_glLightf(void) { } 205848b8605Smrgvoid __indirect_glLightfv(void) { } 206848b8605Smrgvoid __indirect_glLighti(void) { } 207848b8605Smrgvoid __indirect_glLightiv(void) { } 208848b8605Smrgvoid __indirect_glLineStipple(void) { } 209848b8605Smrgvoid __indirect_glLineWidth(void) { } 210848b8605Smrgvoid __indirect_glListBase(void) { } 211848b8605Smrgvoid __indirect_glLoadIdentity(void) { } 212848b8605Smrgvoid __indirect_glLoadMatrixd(void) { } 213848b8605Smrgvoid __indirect_glLoadMatrixf(void) { } 214848b8605Smrgvoid __indirect_glLoadName(void) { } 215848b8605Smrgvoid __indirect_glLogicOp(void) { } 216848b8605Smrgvoid __indirect_glMap1d(void) { } 217848b8605Smrgvoid __indirect_glMap1f(void) { } 218848b8605Smrgvoid __indirect_glMap2d(void) { } 219848b8605Smrgvoid __indirect_glMap2f(void) { } 220848b8605Smrgvoid __indirect_glMapGrid1d(void) { } 221848b8605Smrgvoid __indirect_glMapGrid1f(void) { } 222848b8605Smrgvoid __indirect_glMapGrid2d(void) { } 223848b8605Smrgvoid __indirect_glMapGrid2f(void) { } 224848b8605Smrgvoid __indirect_glMaterialf(void) { } 225848b8605Smrgvoid __indirect_glMaterialfv(void) { } 226848b8605Smrgvoid __indirect_glMateriali(void) { } 227848b8605Smrgvoid __indirect_glMaterialiv(void) { } 228848b8605Smrgvoid __indirect_glMatrixMode(void) { } 229848b8605Smrgvoid __indirect_glMultMatrixd(void) { } 230848b8605Smrgvoid __indirect_glMultMatrixf(void) { } 231848b8605Smrgvoid __indirect_glNewList(void) { } 232848b8605Smrgvoid __indirect_glNormal3b(void) { } 233848b8605Smrgvoid __indirect_glNormal3bv(void) { } 234848b8605Smrgvoid __indirect_glNormal3d(void) { } 235848b8605Smrgvoid __indirect_glNormal3dv(void) { } 236848b8605Smrgvoid __indirect_glNormal3f(void) { } 237848b8605Smrgvoid __indirect_glNormal3fv(void) { } 238848b8605Smrgvoid __indirect_glNormal3i(void) { } 239848b8605Smrgvoid __indirect_glNormal3iv(void) { } 240848b8605Smrgvoid __indirect_glNormal3s(void) { } 241848b8605Smrgvoid __indirect_glNormal3sv(void) { } 242848b8605Smrgvoid __indirect_glOrtho(void) { } 243848b8605Smrgvoid __indirect_glPassThrough(void) { } 244848b8605Smrgvoid __indirect_glPixelMapfv(void) { } 245848b8605Smrgvoid __indirect_glPixelMapuiv(void) { } 246848b8605Smrgvoid __indirect_glPixelMapusv(void) { } 247848b8605Smrgvoid __indirect_glPixelStoref(void) { } 248848b8605Smrgvoid __indirect_glPixelStorei(void) { } 249848b8605Smrgvoid __indirect_glPixelTransferf(void) { } 250848b8605Smrgvoid __indirect_glPixelTransferi(void) { } 251848b8605Smrgvoid __indirect_glPixelZoom(void) { } 252848b8605Smrgvoid __indirect_glPointSize(void) { } 253848b8605Smrgvoid __indirect_glPolygonMode(void) { } 254848b8605Smrgvoid __indirect_glPolygonStipple(void) { } 255848b8605Smrgvoid __indirect_glPopAttrib(void) { } 256848b8605Smrgvoid __indirect_glPopMatrix(void) { } 257848b8605Smrgvoid __indirect_glPopName(void) { } 258848b8605Smrgvoid __indirect_glPushAttrib(void) { } 259848b8605Smrgvoid __indirect_glPushMatrix(void) { } 260848b8605Smrgvoid __indirect_glPushName(void) { } 261848b8605Smrgvoid __indirect_glRasterPos2d(void) { } 262848b8605Smrgvoid __indirect_glRasterPos2dv(void) { } 263848b8605Smrgvoid __indirect_glRasterPos2f(void) { } 264848b8605Smrgvoid __indirect_glRasterPos2fv(void) { } 265848b8605Smrgvoid __indirect_glRasterPos2i(void) { } 266848b8605Smrgvoid __indirect_glRasterPos2iv(void) { } 267848b8605Smrgvoid __indirect_glRasterPos2s(void) { } 268848b8605Smrgvoid __indirect_glRasterPos2sv(void) { } 269848b8605Smrgvoid __indirect_glRasterPos3d(void) { } 270848b8605Smrgvoid __indirect_glRasterPos3dv(void) { } 271848b8605Smrgvoid __indirect_glRasterPos3f(void) { } 272848b8605Smrgvoid __indirect_glRasterPos3fv(void) { } 273848b8605Smrgvoid __indirect_glRasterPos3i(void) { } 274848b8605Smrgvoid __indirect_glRasterPos3iv(void) { } 275848b8605Smrgvoid __indirect_glRasterPos3s(void) { } 276848b8605Smrgvoid __indirect_glRasterPos3sv(void) { } 277848b8605Smrgvoid __indirect_glRasterPos4d(void) { } 278848b8605Smrgvoid __indirect_glRasterPos4dv(void) { } 279848b8605Smrgvoid __indirect_glRasterPos4f(void) { } 280848b8605Smrgvoid __indirect_glRasterPos4fv(void) { } 281848b8605Smrgvoid __indirect_glRasterPos4i(void) { } 282848b8605Smrgvoid __indirect_glRasterPos4iv(void) { } 283848b8605Smrgvoid __indirect_glRasterPos4s(void) { } 284848b8605Smrgvoid __indirect_glRasterPos4sv(void) { } 285848b8605Smrgvoid __indirect_glReadBuffer(void) { } 286848b8605Smrgvoid __indirect_glReadPixels(void) { } 287848b8605Smrgvoid __indirect_glRectd(void) { } 288848b8605Smrgvoid __indirect_glRectdv(void) { } 289848b8605Smrgvoid __indirect_glRectf(void) { } 290848b8605Smrgvoid __indirect_glRectfv(void) { } 291848b8605Smrgvoid __indirect_glRecti(void) { } 292848b8605Smrgvoid __indirect_glRectiv(void) { } 293848b8605Smrgvoid __indirect_glRects(void) { } 294848b8605Smrgvoid __indirect_glRectsv(void) { } 295848b8605Smrgvoid __indirect_glRenderMode(void) { } 296848b8605Smrgvoid __indirect_glRotated(void) { } 297848b8605Smrgvoid __indirect_glRotatef(void) { } 298848b8605Smrgvoid __indirect_glScaled(void) { } 299848b8605Smrgvoid __indirect_glScalef(void) { } 300848b8605Smrgvoid __indirect_glScissor(void) { } 301848b8605Smrgvoid __indirect_glSelectBuffer(void) { } 302848b8605Smrgvoid __indirect_glShadeModel(void) { } 303848b8605Smrgvoid __indirect_glStencilFunc(void) { } 304848b8605Smrgvoid __indirect_glStencilMask(void) { } 305848b8605Smrgvoid __indirect_glStencilOp(void) { } 306848b8605Smrgvoid __indirect_glTexCoord1d(void) { } 307848b8605Smrgvoid __indirect_glTexCoord1dv(void) { } 308848b8605Smrgvoid __indirect_glTexCoord1f(void) { } 309848b8605Smrgvoid __indirect_glTexCoord1fv(void) { } 310848b8605Smrgvoid __indirect_glTexCoord1i(void) { } 311848b8605Smrgvoid __indirect_glTexCoord1iv(void) { } 312848b8605Smrgvoid __indirect_glTexCoord1s(void) { } 313848b8605Smrgvoid __indirect_glTexCoord1sv(void) { } 314848b8605Smrgvoid __indirect_glTexCoord2d(void) { } 315848b8605Smrgvoid __indirect_glTexCoord2dv(void) { } 316848b8605Smrgvoid __indirect_glTexCoord2f(void) { } 317848b8605Smrgvoid __indirect_glTexCoord2fv(void) { } 318848b8605Smrgvoid __indirect_glTexCoord2i(void) { } 319848b8605Smrgvoid __indirect_glTexCoord2iv(void) { } 320848b8605Smrgvoid __indirect_glTexCoord2s(void) { } 321848b8605Smrgvoid __indirect_glTexCoord2sv(void) { } 322848b8605Smrgvoid __indirect_glTexCoord3d(void) { } 323848b8605Smrgvoid __indirect_glTexCoord3dv(void) { } 324848b8605Smrgvoid __indirect_glTexCoord3f(void) { } 325848b8605Smrgvoid __indirect_glTexCoord3fv(void) { } 326848b8605Smrgvoid __indirect_glTexCoord3i(void) { } 327848b8605Smrgvoid __indirect_glTexCoord3iv(void) { } 328848b8605Smrgvoid __indirect_glTexCoord3s(void) { } 329848b8605Smrgvoid __indirect_glTexCoord3sv(void) { } 330848b8605Smrgvoid __indirect_glTexCoord4d(void) { } 331848b8605Smrgvoid __indirect_glTexCoord4dv(void) { } 332848b8605Smrgvoid __indirect_glTexCoord4f(void) { } 333848b8605Smrgvoid __indirect_glTexCoord4fv(void) { } 334848b8605Smrgvoid __indirect_glTexCoord4i(void) { } 335848b8605Smrgvoid __indirect_glTexCoord4iv(void) { } 336848b8605Smrgvoid __indirect_glTexCoord4s(void) { } 337848b8605Smrgvoid __indirect_glTexCoord4sv(void) { } 338848b8605Smrgvoid __indirect_glTexEnvf(void) { } 339848b8605Smrgvoid __indirect_glTexEnvfv(void) { } 340848b8605Smrgvoid __indirect_glTexEnvi(void) { } 341848b8605Smrgvoid __indirect_glTexEnviv(void) { } 342848b8605Smrgvoid __indirect_glTexGend(void) { } 343848b8605Smrgvoid __indirect_glTexGendv(void) { } 344848b8605Smrgvoid __indirect_glTexGenf(void) { } 345848b8605Smrgvoid __indirect_glTexGenfv(void) { } 346848b8605Smrgvoid __indirect_glTexGeni(void) { } 347848b8605Smrgvoid __indirect_glTexGeniv(void) { } 348848b8605Smrgvoid __indirect_glTexImage1D(void) { } 349848b8605Smrgvoid __indirect_glTexImage2D(void) { } 350848b8605Smrgvoid __indirect_glTexParameterf(void) { } 351848b8605Smrgvoid __indirect_glTexParameterfv(void) { } 352848b8605Smrgvoid __indirect_glTexParameteri(void) { } 353848b8605Smrgvoid __indirect_glTexParameteriv(void) { } 354848b8605Smrgvoid __indirect_glTranslated(void) { } 355848b8605Smrgvoid __indirect_glTranslatef(void) { } 356848b8605Smrgvoid __indirect_glVertex2d(void) { } 357848b8605Smrgvoid __indirect_glVertex2dv(void) { } 358848b8605Smrgvoid __indirect_glVertex2f(void) { } 359848b8605Smrgvoid __indirect_glVertex2fv(void) { } 360848b8605Smrgvoid __indirect_glVertex2i(void) { } 361848b8605Smrgvoid __indirect_glVertex2iv(void) { } 362848b8605Smrgvoid __indirect_glVertex2s(void) { } 363848b8605Smrgvoid __indirect_glVertex2sv(void) { } 364848b8605Smrgvoid __indirect_glVertex3d(void) { } 365848b8605Smrgvoid __indirect_glVertex3dv(void) { } 366848b8605Smrgvoid __indirect_glVertex3f(void) { } 367848b8605Smrgvoid __indirect_glVertex3fv(void) { } 368848b8605Smrgvoid __indirect_glVertex3i(void) { } 369848b8605Smrgvoid __indirect_glVertex3iv(void) { } 370848b8605Smrgvoid __indirect_glVertex3s(void) { } 371848b8605Smrgvoid __indirect_glVertex3sv(void) { } 372848b8605Smrgvoid __indirect_glVertex4d(void) { } 373848b8605Smrgvoid __indirect_glVertex4dv(void) { } 374848b8605Smrgvoid __indirect_glVertex4f(void) { } 375848b8605Smrgvoid __indirect_glVertex4fv(void) { } 376848b8605Smrgvoid __indirect_glVertex4i(void) { } 377848b8605Smrgvoid __indirect_glVertex4iv(void) { } 378848b8605Smrgvoid __indirect_glVertex4s(void) { } 379848b8605Smrgvoid __indirect_glVertex4sv(void) { } 380848b8605Smrgvoid __indirect_glViewport(void) { } 381848b8605Smrgvoid __indirect_glAreTexturesResident(void) { } 382848b8605Smrgvoid __indirect_glArrayElement(void) { } 383848b8605Smrgvoid __indirect_glBindTexture(void) { } 384848b8605Smrgvoid __indirect_glColorPointer(void) { } 385848b8605Smrgvoid __indirect_glCopyTexImage1D(void) { } 386848b8605Smrgvoid __indirect_glCopyTexImage2D(void) { } 387848b8605Smrgvoid __indirect_glCopyTexSubImage1D(void) { } 388848b8605Smrgvoid __indirect_glCopyTexSubImage2D(void) { } 389848b8605Smrgvoid __indirect_glDeleteTextures(void) { } 390848b8605Smrgvoid __indirect_glDisableClientState(void) { } 391848b8605Smrgvoid __indirect_glDrawArrays(void) { } 392848b8605Smrgvoid __indirect_glDrawElements(void) { } 393848b8605Smrgvoid __indirect_glEdgeFlagPointer(void) { } 394848b8605Smrgvoid __indirect_glEnableClientState(void) { } 395848b8605Smrgvoid __indirect_glGenTextures(void) { } 396848b8605Smrgvoid __indirect_glGetPointerv(void) { } 397848b8605Smrgvoid __indirect_glIndexPointer(void) { } 398848b8605Smrgvoid __indirect_glIndexub(void) { } 399848b8605Smrgvoid __indirect_glIndexubv(void) { } 400848b8605Smrgvoid __indirect_glInterleavedArrays(void) { } 401848b8605Smrgvoid __indirect_glIsTexture(void) { } 402848b8605Smrgvoid __indirect_glNormalPointer(void) { } 403848b8605Smrgvoid __indirect_glPolygonOffset(void) { } 404848b8605Smrgvoid __indirect_glPopClientAttrib(void) { } 405848b8605Smrgvoid __indirect_glPrioritizeTextures(void) { } 406848b8605Smrgvoid __indirect_glPushClientAttrib(void) { } 407848b8605Smrgvoid __indirect_glTexCoordPointer(void) { } 408848b8605Smrgvoid __indirect_glTexSubImage1D(void) { } 409848b8605Smrgvoid __indirect_glTexSubImage2D(void) { } 410848b8605Smrgvoid __indirect_glVertexPointer(void) { } 411848b8605Smrgvoid __indirect_glBlendColor(void) { } 412848b8605Smrgvoid __indirect_glBlendEquation(void) { } 413848b8605Smrgvoid __indirect_glColorSubTable(void) { } 414848b8605Smrgvoid __indirect_glColorTable(void) { } 415848b8605Smrgvoid __indirect_glColorTableParameterfv(void) { } 416848b8605Smrgvoid __indirect_glColorTableParameteriv(void) { } 417848b8605Smrgvoid __indirect_glConvolutionFilter1D(void) { } 418848b8605Smrgvoid __indirect_glConvolutionFilter2D(void) { } 419848b8605Smrgvoid __indirect_glConvolutionParameterf(void) { } 420848b8605Smrgvoid __indirect_glConvolutionParameterfv(void) { } 421848b8605Smrgvoid __indirect_glConvolutionParameteri(void) { } 422848b8605Smrgvoid __indirect_glConvolutionParameteriv(void) { } 423848b8605Smrgvoid __indirect_glCopyColorSubTable(void) { } 424848b8605Smrgvoid __indirect_glCopyColorTable(void) { } 425848b8605Smrgvoid __indirect_glCopyConvolutionFilter1D(void) { } 426848b8605Smrgvoid __indirect_glCopyConvolutionFilter2D(void) { } 427848b8605Smrgvoid __indirect_glCopyTexSubImage3D(void) { } 428848b8605Smrgvoid __indirect_glDrawRangeElements(void) { } 429848b8605Smrgvoid __indirect_glGetColorTable(void) { } 430848b8605Smrgvoid __indirect_glGetColorTableParameterfv(void) { } 431848b8605Smrgvoid __indirect_glGetColorTableParameteriv(void) { } 432848b8605Smrgvoid __indirect_glGetConvolutionFilter(void) { } 433848b8605Smrgvoid __indirect_glGetConvolutionParameterfv(void) { } 434848b8605Smrgvoid __indirect_glGetConvolutionParameteriv(void) { } 435848b8605Smrgvoid __indirect_glGetHistogram(void) { } 436848b8605Smrgvoid __indirect_glGetHistogramParameterfv(void) { } 437848b8605Smrgvoid __indirect_glGetHistogramParameteriv(void) { } 438848b8605Smrgvoid __indirect_glGetMinmax(void) { } 439848b8605Smrgvoid __indirect_glGetMinmaxParameterfv(void) { } 440848b8605Smrgvoid __indirect_glGetMinmaxParameteriv(void) { } 441848b8605Smrgvoid __indirect_glGetSeparableFilter(void) { } 442848b8605Smrgvoid __indirect_glHistogram(void) { } 443848b8605Smrgvoid __indirect_glMinmax(void) { } 444848b8605Smrgvoid __indirect_glResetHistogram(void) { } 445848b8605Smrgvoid __indirect_glResetMinmax(void) { } 446848b8605Smrgvoid __indirect_glSeparableFilter2D(void) { } 447848b8605Smrgvoid __indirect_glTexImage3D(void) { } 448848b8605Smrgvoid __indirect_glTexSubImage3D(void) { } 449848b8605Smrgvoid __indirect_glActiveTexture(void) { } 450848b8605Smrgvoid __indirect_glClientActiveTexture(void) { } 451848b8605Smrgvoid __indirect_glMultiTexCoord1d(void) { } 452848b8605Smrgvoid __indirect_glMultiTexCoord1dv(void) { } 453848b8605Smrgvoid __indirect_glMultiTexCoord1fARB(void) { } 454848b8605Smrgvoid __indirect_glMultiTexCoord1fvARB(void) { } 455848b8605Smrgvoid __indirect_glMultiTexCoord1i(void) { } 456848b8605Smrgvoid __indirect_glMultiTexCoord1iv(void) { } 457848b8605Smrgvoid __indirect_glMultiTexCoord1s(void) { } 458848b8605Smrgvoid __indirect_glMultiTexCoord1sv(void) { } 459848b8605Smrgvoid __indirect_glMultiTexCoord2d(void) { } 460848b8605Smrgvoid __indirect_glMultiTexCoord2dv(void) { } 461848b8605Smrgvoid __indirect_glMultiTexCoord2fARB(void) { } 462848b8605Smrgvoid __indirect_glMultiTexCoord2fvARB(void) { } 463848b8605Smrgvoid __indirect_glMultiTexCoord2i(void) { } 464848b8605Smrgvoid __indirect_glMultiTexCoord2iv(void) { } 465848b8605Smrgvoid __indirect_glMultiTexCoord2s(void) { } 466848b8605Smrgvoid __indirect_glMultiTexCoord2sv(void) { } 467848b8605Smrgvoid __indirect_glMultiTexCoord3d(void) { } 468848b8605Smrgvoid __indirect_glMultiTexCoord3dv(void) { } 469848b8605Smrgvoid __indirect_glMultiTexCoord3fARB(void) { } 470848b8605Smrgvoid __indirect_glMultiTexCoord3fvARB(void) { } 471848b8605Smrgvoid __indirect_glMultiTexCoord3i(void) { } 472848b8605Smrgvoid __indirect_glMultiTexCoord3iv(void) { } 473848b8605Smrgvoid __indirect_glMultiTexCoord3s(void) { } 474848b8605Smrgvoid __indirect_glMultiTexCoord3sv(void) { } 475848b8605Smrgvoid __indirect_glMultiTexCoord4d(void) { } 476848b8605Smrgvoid __indirect_glMultiTexCoord4dv(void) { } 477848b8605Smrgvoid __indirect_glMultiTexCoord4fARB(void) { } 478848b8605Smrgvoid __indirect_glMultiTexCoord4fvARB(void) { } 479848b8605Smrgvoid __indirect_glMultiTexCoord4i(void) { } 480848b8605Smrgvoid __indirect_glMultiTexCoord4iv(void) { } 481848b8605Smrgvoid __indirect_glMultiTexCoord4s(void) { } 482848b8605Smrgvoid __indirect_glMultiTexCoord4sv(void) { } 483848b8605Smrgvoid __indirect_glLoadTransposeMatrixd(void) { } 484848b8605Smrgvoid __indirect_glLoadTransposeMatrixf(void) { } 485848b8605Smrgvoid __indirect_glMultTransposeMatrixd(void) { } 486848b8605Smrgvoid __indirect_glMultTransposeMatrixf(void) { } 487848b8605Smrgvoid __indirect_glSampleCoverage(void) { } 488848b8605Smrgvoid __indirect_glCompressedTexImage1D(void) { } 489848b8605Smrgvoid __indirect_glCompressedTexImage2D(void) { } 490848b8605Smrgvoid __indirect_glCompressedTexImage3D(void) { } 491848b8605Smrgvoid __indirect_glCompressedTexSubImage1D(void) { } 492848b8605Smrgvoid __indirect_glCompressedTexSubImage2D(void) { } 493848b8605Smrgvoid __indirect_glCompressedTexSubImage3D(void) { } 494848b8605Smrgvoid __indirect_glGetCompressedTexImage(void) { } 495848b8605Smrgvoid __indirect_glDisableVertexAttribArray(void) { } 496848b8605Smrgvoid __indirect_glEnableVertexAttribArray(void) { } 497848b8605Smrgvoid __indirect_glGetProgramEnvParameterdvARB(void) { } 498848b8605Smrgvoid __indirect_glGetProgramEnvParameterfvARB(void) { } 499848b8605Smrgvoid __indirect_glGetProgramLocalParameterdvARB(void) { } 500848b8605Smrgvoid __indirect_glGetProgramLocalParameterfvARB(void) { } 501848b8605Smrgvoid __indirect_glGetProgramStringARB(void) { } 502848b8605Smrgvoid __indirect_glGetProgramivARB(void) { } 503848b8605Smrgvoid __indirect_glGetVertexAttribdv(void) { } 504848b8605Smrgvoid __indirect_glGetVertexAttribfv(void) { } 505848b8605Smrgvoid __indirect_glGetVertexAttribiv(void) { } 506848b8605Smrgvoid __indirect_glProgramEnvParameter4dARB(void) { } 507848b8605Smrgvoid __indirect_glProgramEnvParameter4dvARB(void) { } 508848b8605Smrgvoid __indirect_glProgramEnvParameter4fARB(void) { } 509848b8605Smrgvoid __indirect_glProgramEnvParameter4fvARB(void) { } 510848b8605Smrgvoid __indirect_glProgramLocalParameter4dARB(void) { } 511848b8605Smrgvoid __indirect_glProgramLocalParameter4dvARB(void) { } 512848b8605Smrgvoid __indirect_glProgramLocalParameter4fARB(void) { } 513848b8605Smrgvoid __indirect_glProgramLocalParameter4fvARB(void) { } 514848b8605Smrgvoid __indirect_glProgramStringARB(void) { } 515848b8605Smrgvoid __indirect_glVertexAttrib1d(void) { } 516848b8605Smrgvoid __indirect_glVertexAttrib1dv(void) { } 517848b8605Smrgvoid __indirect_glVertexAttrib1fARB(void) { } 518848b8605Smrgvoid __indirect_glVertexAttrib1fvARB(void) { } 519848b8605Smrgvoid __indirect_glVertexAttrib1s(void) { } 520848b8605Smrgvoid __indirect_glVertexAttrib1sv(void) { } 521848b8605Smrgvoid __indirect_glVertexAttrib2d(void) { } 522848b8605Smrgvoid __indirect_glVertexAttrib2dv(void) { } 523848b8605Smrgvoid __indirect_glVertexAttrib2fARB(void) { } 524848b8605Smrgvoid __indirect_glVertexAttrib2fvARB(void) { } 525848b8605Smrgvoid __indirect_glVertexAttrib2s(void) { } 526848b8605Smrgvoid __indirect_glVertexAttrib2sv(void) { } 527848b8605Smrgvoid __indirect_glVertexAttrib3d(void) { } 528848b8605Smrgvoid __indirect_glVertexAttrib3dv(void) { } 529848b8605Smrgvoid __indirect_glVertexAttrib3fARB(void) { } 530848b8605Smrgvoid __indirect_glVertexAttrib3fvARB(void) { } 531848b8605Smrgvoid __indirect_glVertexAttrib3s(void) { } 532848b8605Smrgvoid __indirect_glVertexAttrib3sv(void) { } 533848b8605Smrgvoid __indirect_glVertexAttrib4Nbv(void) { } 534848b8605Smrgvoid __indirect_glVertexAttrib4Niv(void) { } 535848b8605Smrgvoid __indirect_glVertexAttrib4Nsv(void) { } 536848b8605Smrgvoid __indirect_glVertexAttrib4Nub(void) { } 537848b8605Smrgvoid __indirect_glVertexAttrib4Nubv(void) { } 538848b8605Smrgvoid __indirect_glVertexAttrib4Nuiv(void) { } 539848b8605Smrgvoid __indirect_glVertexAttrib4Nusv(void) { } 540848b8605Smrgvoid __indirect_glVertexAttrib4bv(void) { } 541848b8605Smrgvoid __indirect_glVertexAttrib4d(void) { } 542848b8605Smrgvoid __indirect_glVertexAttrib4dv(void) { } 543848b8605Smrgvoid __indirect_glVertexAttrib4fARB(void) { } 544848b8605Smrgvoid __indirect_glVertexAttrib4fvARB(void) { } 545848b8605Smrgvoid __indirect_glVertexAttrib4iv(void) { } 546848b8605Smrgvoid __indirect_glVertexAttrib4s(void) { } 547848b8605Smrgvoid __indirect_glVertexAttrib4sv(void) { } 548848b8605Smrgvoid __indirect_glVertexAttrib4ubv(void) { } 549848b8605Smrgvoid __indirect_glVertexAttrib4uiv(void) { } 550848b8605Smrgvoid __indirect_glVertexAttrib4usv(void) { } 551848b8605Smrgvoid __indirect_glVertexAttribPointer(void) { } 552848b8605Smrgvoid __indirect_glBeginQuery(void) { } 553848b8605Smrgvoid __indirect_glDeleteQueries(void) { } 554848b8605Smrgvoid __indirect_glEndQuery(void) { } 555848b8605Smrgvoid __indirect_glGenQueries(void) { } 556848b8605Smrgvoid __indirect_glGetQueryObjectiv(void) { } 557848b8605Smrgvoid __indirect_glGetQueryObjectuiv(void) { } 558848b8605Smrgvoid __indirect_glGetQueryiv(void) { } 559848b8605Smrgvoid __indirect_glIsQuery(void) { } 560848b8605Smrgvoid __indirect_glDrawBuffers(void) { } 561848b8605Smrgvoid __indirect_glClampColor(void) { } 562848b8605Smrgvoid __indirect_glRenderbufferStorageMultisample(void) { } 563848b8605Smrgvoid __indirect_glSampleMaskSGIS(void) { } 564848b8605Smrgvoid __indirect_glSamplePatternSGIS(void) { } 565848b8605Smrgvoid __indirect_glColorPointerEXT(void) { } 566848b8605Smrgvoid __indirect_glEdgeFlagPointerEXT(void) { } 567848b8605Smrgvoid __indirect_glIndexPointerEXT(void) { } 568848b8605Smrgvoid __indirect_glNormalPointerEXT(void) { } 569848b8605Smrgvoid __indirect_glTexCoordPointerEXT(void) { } 570848b8605Smrgvoid __indirect_glVertexPointerEXT(void) { } 571848b8605Smrgvoid __indirect_glPointParameterf(void) { } 572848b8605Smrgvoid __indirect_glPointParameterfv(void) { } 573848b8605Smrgvoid __indirect_glSecondaryColor3b(void) { } 574848b8605Smrgvoid __indirect_glSecondaryColor3bv(void) { } 575848b8605Smrgvoid __indirect_glSecondaryColor3d(void) { } 576848b8605Smrgvoid __indirect_glSecondaryColor3dv(void) { } 577848b8605Smrgvoid __indirect_glSecondaryColor3fEXT(void) { } 578848b8605Smrgvoid __indirect_glSecondaryColor3fvEXT(void) { } 579848b8605Smrgvoid __indirect_glSecondaryColor3i(void) { } 580848b8605Smrgvoid __indirect_glSecondaryColor3iv(void) { } 581848b8605Smrgvoid __indirect_glSecondaryColor3s(void) { } 582848b8605Smrgvoid __indirect_glSecondaryColor3sv(void) { } 583848b8605Smrgvoid __indirect_glSecondaryColor3ub(void) { } 584848b8605Smrgvoid __indirect_glSecondaryColor3ubv(void) { } 585848b8605Smrgvoid __indirect_glSecondaryColor3ui(void) { } 586848b8605Smrgvoid __indirect_glSecondaryColor3uiv(void) { } 587848b8605Smrgvoid __indirect_glSecondaryColor3us(void) { } 588848b8605Smrgvoid __indirect_glSecondaryColor3usv(void) { } 589848b8605Smrgvoid __indirect_glSecondaryColorPointer(void) { } 590848b8605Smrgvoid __indirect_glMultiDrawArrays(void) { } 591848b8605Smrgvoid __indirect_glMultiDrawElementsEXT(void) { } 592848b8605Smrgvoid __indirect_glFogCoordPointer(void) { } 593848b8605Smrgvoid __indirect_glFogCoordd(void) { } 594848b8605Smrgvoid __indirect_glFogCoorddv(void) { } 595848b8605Smrgvoid __indirect_glFogCoordfEXT(void) { } 596848b8605Smrgvoid __indirect_glFogCoordfvEXT(void) { } 597848b8605Smrgvoid __indirect_glBlendFuncSeparate(void) { } 598848b8605Smrgvoid __indirect_glWindowPos2d(void) { } 599848b8605Smrgvoid __indirect_glWindowPos2dv(void) { } 600848b8605Smrgvoid __indirect_glWindowPos2f(void) { } 601848b8605Smrgvoid __indirect_glWindowPos2fv(void) { } 602848b8605Smrgvoid __indirect_glWindowPos2i(void) { } 603848b8605Smrgvoid __indirect_glWindowPos2iv(void) { } 604848b8605Smrgvoid __indirect_glWindowPos2s(void) { } 605848b8605Smrgvoid __indirect_glWindowPos2sv(void) { } 606848b8605Smrgvoid __indirect_glWindowPos3d(void) { } 607848b8605Smrgvoid __indirect_glWindowPos3dv(void) { } 608848b8605Smrgvoid __indirect_glWindowPos3f(void) { } 609848b8605Smrgvoid __indirect_glWindowPos3fv(void) { } 610848b8605Smrgvoid __indirect_glWindowPos3i(void) { } 611848b8605Smrgvoid __indirect_glWindowPos3iv(void) { } 612848b8605Smrgvoid __indirect_glWindowPos3s(void) { } 613848b8605Smrgvoid __indirect_glWindowPos3sv(void) { } 614848b8605Smrgvoid __indirect_glAreProgramsResidentNV(void) { } 615848b8605Smrgvoid __indirect_glBindProgramARB(void) { } 616848b8605Smrgvoid __indirect_glDeleteProgramsARB(void) { } 617848b8605Smrgvoid __indirect_glExecuteProgramNV(void) { } 618848b8605Smrgvoid __indirect_glGenProgramsARB(void) { } 619848b8605Smrgvoid __indirect_glGetProgramParameterdvNV(void) { } 620848b8605Smrgvoid __indirect_glGetProgramParameterfvNV(void) { } 621848b8605Smrgvoid __indirect_glGetProgramStringNV(void) { } 622848b8605Smrgvoid __indirect_glGetProgramivNV(void) { } 623848b8605Smrgvoid __indirect_glGetTrackMatrixivNV(void) { } 624848b8605Smrgvoid __indirect_glGetVertexAttribPointerv(void) { } 625848b8605Smrgvoid __indirect_glGetVertexAttribdvNV(void) { } 626848b8605Smrgvoid __indirect_glGetVertexAttribfvNV(void) { } 627848b8605Smrgvoid __indirect_glGetVertexAttribivNV(void) { } 628848b8605Smrgvoid __indirect_glIsProgramARB(void) { } 629848b8605Smrgvoid __indirect_glLoadProgramNV(void) { } 630848b8605Smrgvoid __indirect_glProgramParameters4dvNV(void) { } 631848b8605Smrgvoid __indirect_glProgramParameters4fvNV(void) { } 632848b8605Smrgvoid __indirect_glRequestResidentProgramsNV(void) { } 633848b8605Smrgvoid __indirect_glTrackMatrixNV(void) { } 634848b8605Smrgvoid __indirect_glVertexAttrib1dNV(void) { } 635848b8605Smrgvoid __indirect_glVertexAttrib1dvNV(void) { } 636848b8605Smrgvoid __indirect_glVertexAttrib1fNV(void) { } 637848b8605Smrgvoid __indirect_glVertexAttrib1fvNV(void) { } 638848b8605Smrgvoid __indirect_glVertexAttrib1sNV(void) { } 639848b8605Smrgvoid __indirect_glVertexAttrib1svNV(void) { } 640848b8605Smrgvoid __indirect_glVertexAttrib2dNV(void) { } 641848b8605Smrgvoid __indirect_glVertexAttrib2dvNV(void) { } 642848b8605Smrgvoid __indirect_glVertexAttrib2fNV(void) { } 643848b8605Smrgvoid __indirect_glVertexAttrib2fvNV(void) { } 644848b8605Smrgvoid __indirect_glVertexAttrib2sNV(void) { } 645848b8605Smrgvoid __indirect_glVertexAttrib2svNV(void) { } 646848b8605Smrgvoid __indirect_glVertexAttrib3dNV(void) { } 647848b8605Smrgvoid __indirect_glVertexAttrib3dvNV(void) { } 648848b8605Smrgvoid __indirect_glVertexAttrib3fNV(void) { } 649848b8605Smrgvoid __indirect_glVertexAttrib3fvNV(void) { } 650848b8605Smrgvoid __indirect_glVertexAttrib3sNV(void) { } 651848b8605Smrgvoid __indirect_glVertexAttrib3svNV(void) { } 652848b8605Smrgvoid __indirect_glVertexAttrib4dNV(void) { } 653848b8605Smrgvoid __indirect_glVertexAttrib4dvNV(void) { } 654848b8605Smrgvoid __indirect_glVertexAttrib4fNV(void) { } 655848b8605Smrgvoid __indirect_glVertexAttrib4fvNV(void) { } 656848b8605Smrgvoid __indirect_glVertexAttrib4sNV(void) { } 657848b8605Smrgvoid __indirect_glVertexAttrib4svNV(void) { } 658848b8605Smrgvoid __indirect_glVertexAttrib4ubNV(void) { } 659848b8605Smrgvoid __indirect_glVertexAttrib4ubvNV(void) { } 660848b8605Smrgvoid __indirect_glVertexAttribPointerNV(void) { } 661848b8605Smrgvoid __indirect_glVertexAttribs1dvNV(void) { } 662848b8605Smrgvoid __indirect_glVertexAttribs1fvNV(void) { } 663848b8605Smrgvoid __indirect_glVertexAttribs1svNV(void) { } 664848b8605Smrgvoid __indirect_glVertexAttribs2dvNV(void) { } 665848b8605Smrgvoid __indirect_glVertexAttribs2fvNV(void) { } 666848b8605Smrgvoid __indirect_glVertexAttribs2svNV(void) { } 667848b8605Smrgvoid __indirect_glVertexAttribs3dvNV(void) { } 668848b8605Smrgvoid __indirect_glVertexAttribs3fvNV(void) { } 669848b8605Smrgvoid __indirect_glVertexAttribs3svNV(void) { } 670848b8605Smrgvoid __indirect_glVertexAttribs4dvNV(void) { } 671848b8605Smrgvoid __indirect_glVertexAttribs4fvNV(void) { } 672848b8605Smrgvoid __indirect_glVertexAttribs4svNV(void) { } 673848b8605Smrgvoid __indirect_glVertexAttribs4ubvNV(void) { } 674848b8605Smrgvoid __indirect_glPointParameteri(void) { } 675848b8605Smrgvoid __indirect_glPointParameteriv(void) { } 676848b8605Smrgvoid __indirect_glActiveStencilFaceEXT(void) { } 677848b8605Smrgvoid __indirect_glGetProgramNamedParameterdvNV(void) { } 678848b8605Smrgvoid __indirect_glGetProgramNamedParameterfvNV(void) { } 679848b8605Smrgvoid __indirect_glProgramNamedParameter4dNV(void) { } 680848b8605Smrgvoid __indirect_glProgramNamedParameter4dvNV(void) { } 681848b8605Smrgvoid __indirect_glProgramNamedParameter4fNV(void) { } 682848b8605Smrgvoid __indirect_glProgramNamedParameter4fvNV(void) { } 683848b8605Smrgvoid __indirect_glBlendEquationSeparate(void) { } 684848b8605Smrgvoid __indirect_glBindFramebufferEXT(void) { } 685848b8605Smrgvoid __indirect_glBindRenderbufferEXT(void) { } 686848b8605Smrgvoid __indirect_glBindFramebuffer(void) { } 687848b8605Smrgvoid __indirect_glBindRenderbuffer(void) { } 688848b8605Smrgvoid __indirect_glCheckFramebufferStatus(void) { } 689848b8605Smrgvoid __indirect_glDeleteFramebuffers(void) { } 690848b8605Smrgvoid __indirect_glDeleteRenderbuffers(void) { } 691848b8605Smrgvoid __indirect_glFramebufferRenderbuffer(void) { } 692848b8605Smrgvoid __indirect_glFramebufferTexture1D(void) { } 693848b8605Smrgvoid __indirect_glFramebufferTexture2D(void) { } 694848b8605Smrgvoid __indirect_glFramebufferTexture3D(void) { } 695848b8605Smrgvoid __indirect_glGenFramebuffers(void) { } 696848b8605Smrgvoid __indirect_glGenRenderbuffers(void) { } 697848b8605Smrgvoid __indirect_glGenerateMipmap(void) { } 698848b8605Smrgvoid __indirect_glGetFramebufferAttachmentParameteriv(void) { } 699848b8605Smrgvoid __indirect_glGetRenderbufferParameteriv(void) { } 700848b8605Smrgvoid __indirect_glIsFramebuffer(void) { } 701848b8605Smrgvoid __indirect_glIsRenderbuffer(void) { } 702848b8605Smrgvoid __indirect_glRenderbufferStorage(void) { } 703848b8605Smrgvoid __indirect_glBlitFramebuffer(void) { } 704848b8605Smrgvoid __indirect_glFramebufferTextureLayer(void) { } 705848b8605Smrg} 706848b8605Smrg/*@}*/ 707848b8605Smrg 708b8e80941Smrg#ifndef GLX_USE_APPLEGL 709b8e80941Smrg 710848b8605Smrgclass IndirectAPI : public ::testing::Test { 711848b8605Smrgpublic: 712848b8605Smrg virtual void SetUp(); 713848b8605Smrg virtual void TearDown(); 714848b8605Smrg 715848b8605Smrg _glapi_proc *table; 716848b8605Smrg}; 717848b8605Smrg 718848b8605Smrgvoid 719848b8605SmrgIndirectAPI::SetUp() 720848b8605Smrg{ 721848b8605Smrg this->table = (_glapi_proc *) __glXNewIndirectAPI(); 722848b8605Smrg} 723848b8605Smrg 724848b8605Smrgvoid 725848b8605SmrgIndirectAPI::TearDown() 726848b8605Smrg{ 727848b8605Smrg free(this->table); 728848b8605Smrg this->table = NULL; 729848b8605Smrg} 730848b8605Smrg 731848b8605SmrgTEST_F(IndirectAPI, DispatchTableSizeWasQueried) 732848b8605Smrg{ 733848b8605Smrg dispatch_table_size_was_queried = false; 734848b8605Smrg 735848b8605Smrg /* __glXNewIndirectAPI determines the size of the dispatch table by calling 736848b8605Smrg * _glapi_get_dispatch_table_size. Our stub version of this function sets 737848b8605Smrg * a flag so that we can detect that __glXNewIndirectAPI called it. 738848b8605Smrg */ 739848b8605Smrg EXPECT_FALSE(dispatch_table_size_was_queried); 740848b8605Smrg _glapi_table *table = __glXNewIndirectAPI(); 741848b8605Smrg EXPECT_TRUE(dispatch_table_size_was_queried); 742848b8605Smrg 743848b8605Smrg /* Since a second dispatch table was created, it must be freed by hand. 744848b8605Smrg */ 745848b8605Smrg free(table); 746848b8605Smrg} 747848b8605Smrg 748848b8605SmrgTEST_F(IndirectAPI, NoNullEntries) 749848b8605Smrg{ 750848b8605Smrg const unsigned entries = _glapi_get_dispatch_table_size(); 751848b8605Smrg 752848b8605Smrg /* There should not be any NULL entries in the dispatch table. All entires 753848b8605Smrg * should either point to a real implementation or to a no-op function. 754848b8605Smrg */ 755848b8605Smrg for (unsigned i = 0; i < entries; i++) { 756848b8605Smrg EXPECT_NE(nil, table[i]); 757848b8605Smrg } 758848b8605Smrg} 759848b8605Smrg 760848b8605SmrgTEST_F(IndirectAPI, OpenGL_10) 761848b8605Smrg{ 762848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glAccum, table[_gloffset_Accum]); 763848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glAlphaFunc, table[_gloffset_AlphaFunc]); 764848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBegin, table[_gloffset_Begin]); 765848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBitmap, table[_gloffset_Bitmap]); 766848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBlendFunc, table[_gloffset_BlendFunc]); 767848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCallList, table[_gloffset_CallList]); 768848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCallLists, table[_gloffset_CallLists]); 769848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClear, table[_gloffset_Clear]); 770848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClearAccum, table[_gloffset_ClearAccum]); 771848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClearColor, table[_gloffset_ClearColor]); 772848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClearDepth, table[_gloffset_ClearDepth]); 773848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClearIndex, table[_gloffset_ClearIndex]); 774848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClearStencil, table[_gloffset_ClearStencil]); 775848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClipPlane, table[_gloffset_ClipPlane]); 776848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3b, table[_gloffset_Color3b]); 777848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3bv, table[_gloffset_Color3bv]); 778848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3d, table[_gloffset_Color3d]); 779848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3dv, table[_gloffset_Color3dv]); 780848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3f, table[_gloffset_Color3f]); 781848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3fv, table[_gloffset_Color3fv]); 782848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3i, table[_gloffset_Color3i]); 783848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3iv, table[_gloffset_Color3iv]); 784848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3s, table[_gloffset_Color3s]); 785848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3sv, table[_gloffset_Color3sv]); 786848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3ub, table[_gloffset_Color3ub]); 787848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3ubv, table[_gloffset_Color3ubv]); 788848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3ui, table[_gloffset_Color3ui]); 789848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3uiv, table[_gloffset_Color3uiv]); 790848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3us, table[_gloffset_Color3us]); 791848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor3usv, table[_gloffset_Color3usv]); 792848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4b, table[_gloffset_Color4b]); 793848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4bv, table[_gloffset_Color4bv]); 794848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4d, table[_gloffset_Color4d]); 795848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4dv, table[_gloffset_Color4dv]); 796848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4f, table[_gloffset_Color4f]); 797848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4fv, table[_gloffset_Color4fv]); 798848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4i, table[_gloffset_Color4i]); 799848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4iv, table[_gloffset_Color4iv]); 800848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4s, table[_gloffset_Color4s]); 801848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4sv, table[_gloffset_Color4sv]); 802848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4ub, table[_gloffset_Color4ub]); 803848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4ubv, table[_gloffset_Color4ubv]); 804848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4ui, table[_gloffset_Color4ui]); 805848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4uiv, table[_gloffset_Color4uiv]); 806848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4us, table[_gloffset_Color4us]); 807848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColor4usv, table[_gloffset_Color4usv]); 808848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorMask, table[_gloffset_ColorMask]); 809848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorMaterial, table[_gloffset_ColorMaterial]); 810848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyPixels, table[_gloffset_CopyPixels]); 811848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCullFace, table[_gloffset_CullFace]); 812848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDeleteLists, table[_gloffset_DeleteLists]); 813848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDepthFunc, table[_gloffset_DepthFunc]); 814848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDepthMask, table[_gloffset_DepthMask]); 815848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDepthRange, table[_gloffset_DepthRange]); 816848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDisable, table[_gloffset_Disable]); 817848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDrawBuffer, table[_gloffset_DrawBuffer]); 818848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDrawPixels, table[_gloffset_DrawPixels]); 819848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEdgeFlag, table[_gloffset_EdgeFlag]); 820848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEdgeFlagv, table[_gloffset_EdgeFlagv]); 821848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEnable, table[_gloffset_Enable]); 822848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEnd, table[_gloffset_End]); 823848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEndList, table[_gloffset_EndList]); 824848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord1d, table[_gloffset_EvalCoord1d]); 825848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord1dv, table[_gloffset_EvalCoord1dv]); 826848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord1f, table[_gloffset_EvalCoord1f]); 827848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord1fv, table[_gloffset_EvalCoord1fv]); 828848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord2d, table[_gloffset_EvalCoord2d]); 829848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord2dv, table[_gloffset_EvalCoord2dv]); 830848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord2f, table[_gloffset_EvalCoord2f]); 831848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalCoord2fv, table[_gloffset_EvalCoord2fv]); 832848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalMesh1, table[_gloffset_EvalMesh1]); 833848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalMesh2, table[_gloffset_EvalMesh2]); 834848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalPoint1, table[_gloffset_EvalPoint1]); 835848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEvalPoint2, table[_gloffset_EvalPoint2]); 836848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFeedbackBuffer, table[_gloffset_FeedbackBuffer]); 837848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFinish, table[_gloffset_Finish]); 838848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFlush, table[_gloffset_Flush]); 839848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogf, table[_gloffset_Fogf]); 840848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogfv, table[_gloffset_Fogfv]); 841848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogi, table[_gloffset_Fogi]); 842848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogiv, table[_gloffset_Fogiv]); 843848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFrontFace, table[_gloffset_FrontFace]); 844848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFrustum, table[_gloffset_Frustum]); 845848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGenLists, table[_gloffset_GenLists]); 846848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetBooleanv, table[_gloffset_GetBooleanv]); 847848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetClipPlane, table[_gloffset_GetClipPlane]); 848848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetDoublev, table[_gloffset_GetDoublev]); 849848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetError, table[_gloffset_GetError]); 850848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetFloatv, table[_gloffset_GetFloatv]); 851848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetIntegerv, table[_gloffset_GetIntegerv]); 852848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetLightfv, table[_gloffset_GetLightfv]); 853848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetLightiv, table[_gloffset_GetLightiv]); 854848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMapdv, table[_gloffset_GetMapdv]); 855848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMapfv, table[_gloffset_GetMapfv]); 856848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMapiv, table[_gloffset_GetMapiv]); 857848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMaterialfv, table[_gloffset_GetMaterialfv]); 858848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMaterialiv, table[_gloffset_GetMaterialiv]); 859848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetPixelMapfv, table[_gloffset_GetPixelMapfv]); 860848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetPixelMapuiv, table[_gloffset_GetPixelMapuiv]); 861848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetPixelMapusv, table[_gloffset_GetPixelMapusv]); 862848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetPolygonStipple, table[_gloffset_GetPolygonStipple]); 863848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetString, table[_gloffset_GetString]); 864848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexEnvfv, table[_gloffset_GetTexEnvfv]); 865848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexEnviv, table[_gloffset_GetTexEnviv]); 866848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexGendv, table[_gloffset_GetTexGendv]); 867848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexGenfv, table[_gloffset_GetTexGenfv]); 868848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexGeniv, table[_gloffset_GetTexGeniv]); 869848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexImage, table[_gloffset_GetTexImage]); 870848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexLevelParameterfv, table[_gloffset_GetTexLevelParameterfv]); 871848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexLevelParameteriv, table[_gloffset_GetTexLevelParameteriv]); 872848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexParameterfv, table[_gloffset_GetTexParameterfv]); 873848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTexParameteriv, table[_gloffset_GetTexParameteriv]); 874848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glHint, table[_gloffset_Hint]); 875848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexMask, table[_gloffset_IndexMask]); 876848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexd, table[_gloffset_Indexd]); 877848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexdv, table[_gloffset_Indexdv]); 878848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexf, table[_gloffset_Indexf]); 879848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexfv, table[_gloffset_Indexfv]); 880848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexi, table[_gloffset_Indexi]); 881848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexiv, table[_gloffset_Indexiv]); 882848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexs, table[_gloffset_Indexs]); 883848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexsv, table[_gloffset_Indexsv]); 884848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glInitNames, table[_gloffset_InitNames]); 885848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIsEnabled, table[_gloffset_IsEnabled]); 886848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIsList, table[_gloffset_IsList]); 887848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLightModelf, table[_gloffset_LightModelf]); 888848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLightModelfv, table[_gloffset_LightModelfv]); 889848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLightModeli, table[_gloffset_LightModeli]); 890848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLightModeliv, table[_gloffset_LightModeliv]); 891848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLightf, table[_gloffset_Lightf]); 892848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLightfv, table[_gloffset_Lightfv]); 893848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLighti, table[_gloffset_Lighti]); 894848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLightiv, table[_gloffset_Lightiv]); 895848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLineStipple, table[_gloffset_LineStipple]); 896848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLineWidth, table[_gloffset_LineWidth]); 897848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glListBase, table[_gloffset_ListBase]); 898848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLoadIdentity, table[_gloffset_LoadIdentity]); 899848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLoadMatrixd, table[_gloffset_LoadMatrixd]); 900848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLoadMatrixf, table[_gloffset_LoadMatrixf]); 901848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLoadName, table[_gloffset_LoadName]); 902848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLogicOp, table[_gloffset_LogicOp]); 903848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMap1d, table[_gloffset_Map1d]); 904848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMap1f, table[_gloffset_Map1f]); 905848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMap2d, table[_gloffset_Map2d]); 906848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMap2f, table[_gloffset_Map2f]); 907848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMapGrid1d, table[_gloffset_MapGrid1d]); 908848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMapGrid1f, table[_gloffset_MapGrid1f]); 909848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMapGrid2d, table[_gloffset_MapGrid2d]); 910848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMapGrid2f, table[_gloffset_MapGrid2f]); 911848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMaterialf, table[_gloffset_Materialf]); 912848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMaterialfv, table[_gloffset_Materialfv]); 913848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMateriali, table[_gloffset_Materiali]); 914848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMaterialiv, table[_gloffset_Materialiv]); 915848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMatrixMode, table[_gloffset_MatrixMode]); 916848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultMatrixd, table[_gloffset_MultMatrixd]); 917848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultMatrixf, table[_gloffset_MultMatrixf]); 918848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNewList, table[_gloffset_NewList]); 919848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3b, table[_gloffset_Normal3b]); 920848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3bv, table[_gloffset_Normal3bv]); 921848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3d, table[_gloffset_Normal3d]); 922848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3dv, table[_gloffset_Normal3dv]); 923848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3f, table[_gloffset_Normal3f]); 924848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3fv, table[_gloffset_Normal3fv]); 925848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3i, table[_gloffset_Normal3i]); 926848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3iv, table[_gloffset_Normal3iv]); 927848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3s, table[_gloffset_Normal3s]); 928848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormal3sv, table[_gloffset_Normal3sv]); 929848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glOrtho, table[_gloffset_Ortho]); 930848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPassThrough, table[_gloffset_PassThrough]); 931848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelMapfv, table[_gloffset_PixelMapfv]); 932848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelMapuiv, table[_gloffset_PixelMapuiv]); 933848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelMapusv, table[_gloffset_PixelMapusv]); 934848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelStoref, table[_gloffset_PixelStoref]); 935848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelStorei, table[_gloffset_PixelStorei]); 936848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelTransferf, table[_gloffset_PixelTransferf]); 937848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelTransferi, table[_gloffset_PixelTransferi]); 938848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPixelZoom, table[_gloffset_PixelZoom]); 939848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPointSize, table[_gloffset_PointSize]); 940848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPolygonMode, table[_gloffset_PolygonMode]); 941848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPolygonStipple, table[_gloffset_PolygonStipple]); 942848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPopAttrib, table[_gloffset_PopAttrib]); 943848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPopMatrix, table[_gloffset_PopMatrix]); 944848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPopName, table[_gloffset_PopName]); 945848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPushAttrib, table[_gloffset_PushAttrib]); 946848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPushMatrix, table[_gloffset_PushMatrix]); 947848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPushName, table[_gloffset_PushName]); 948848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2d, table[_gloffset_RasterPos2d]); 949848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2dv, table[_gloffset_RasterPos2dv]); 950848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2f, table[_gloffset_RasterPos2f]); 951848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2fv, table[_gloffset_RasterPos2fv]); 952848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2i, table[_gloffset_RasterPos2i]); 953848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2iv, table[_gloffset_RasterPos2iv]); 954848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2s, table[_gloffset_RasterPos2s]); 955848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos2sv, table[_gloffset_RasterPos2sv]); 956848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3d, table[_gloffset_RasterPos3d]); 957848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3dv, table[_gloffset_RasterPos3dv]); 958848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3f, table[_gloffset_RasterPos3f]); 959848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3fv, table[_gloffset_RasterPos3fv]); 960848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3i, table[_gloffset_RasterPos3i]); 961848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3iv, table[_gloffset_RasterPos3iv]); 962848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3s, table[_gloffset_RasterPos3s]); 963848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos3sv, table[_gloffset_RasterPos3sv]); 964848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4d, table[_gloffset_RasterPos4d]); 965848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4dv, table[_gloffset_RasterPos4dv]); 966848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4f, table[_gloffset_RasterPos4f]); 967848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4fv, table[_gloffset_RasterPos4fv]); 968848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4i, table[_gloffset_RasterPos4i]); 969848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4iv, table[_gloffset_RasterPos4iv]); 970848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4s, table[_gloffset_RasterPos4s]); 971848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRasterPos4sv, table[_gloffset_RasterPos4sv]); 972848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glReadBuffer, table[_gloffset_ReadBuffer]); 973848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glReadPixels, table[_gloffset_ReadPixels]); 974848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRectd, table[_gloffset_Rectd]); 975848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRectdv, table[_gloffset_Rectdv]); 976848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRectf, table[_gloffset_Rectf]); 977848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRectfv, table[_gloffset_Rectfv]); 978848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRecti, table[_gloffset_Recti]); 979848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRectiv, table[_gloffset_Rectiv]); 980848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRects, table[_gloffset_Rects]); 981848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRectsv, table[_gloffset_Rectsv]); 982848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRenderMode, table[_gloffset_RenderMode]); 983848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRotated, table[_gloffset_Rotated]); 984848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRotatef, table[_gloffset_Rotatef]); 985848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glScaled, table[_gloffset_Scaled]); 986848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glScalef, table[_gloffset_Scalef]); 987848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glScissor, table[_gloffset_Scissor]); 988848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSelectBuffer, table[_gloffset_SelectBuffer]); 989848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glShadeModel, table[_gloffset_ShadeModel]); 990848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glStencilFunc, table[_gloffset_StencilFunc]); 991848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glStencilMask, table[_gloffset_StencilMask]); 992848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glStencilOp, table[_gloffset_StencilOp]); 993848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1d, table[_gloffset_TexCoord1d]); 994848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1dv, table[_gloffset_TexCoord1dv]); 995848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1f, table[_gloffset_TexCoord1f]); 996848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1fv, table[_gloffset_TexCoord1fv]); 997848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1i, table[_gloffset_TexCoord1i]); 998848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1iv, table[_gloffset_TexCoord1iv]); 999848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1s, table[_gloffset_TexCoord1s]); 1000848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord1sv, table[_gloffset_TexCoord1sv]); 1001848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2d, table[_gloffset_TexCoord2d]); 1002848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2dv, table[_gloffset_TexCoord2dv]); 1003848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2f, table[_gloffset_TexCoord2f]); 1004848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2fv, table[_gloffset_TexCoord2fv]); 1005848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2i, table[_gloffset_TexCoord2i]); 1006848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2iv, table[_gloffset_TexCoord2iv]); 1007848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2s, table[_gloffset_TexCoord2s]); 1008848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord2sv, table[_gloffset_TexCoord2sv]); 1009848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3d, table[_gloffset_TexCoord3d]); 1010848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3dv, table[_gloffset_TexCoord3dv]); 1011848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3f, table[_gloffset_TexCoord3f]); 1012848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3fv, table[_gloffset_TexCoord3fv]); 1013848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3i, table[_gloffset_TexCoord3i]); 1014848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3iv, table[_gloffset_TexCoord3iv]); 1015848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3s, table[_gloffset_TexCoord3s]); 1016848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord3sv, table[_gloffset_TexCoord3sv]); 1017848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4d, table[_gloffset_TexCoord4d]); 1018848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4dv, table[_gloffset_TexCoord4dv]); 1019848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4f, table[_gloffset_TexCoord4f]); 1020848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4fv, table[_gloffset_TexCoord4fv]); 1021848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4i, table[_gloffset_TexCoord4i]); 1022848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4iv, table[_gloffset_TexCoord4iv]); 1023848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4s, table[_gloffset_TexCoord4s]); 1024848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoord4sv, table[_gloffset_TexCoord4sv]); 1025848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexEnvf, table[_gloffset_TexEnvf]); 1026848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexEnvfv, table[_gloffset_TexEnvfv]); 1027848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexEnvi, table[_gloffset_TexEnvi]); 1028848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexEnviv, table[_gloffset_TexEnviv]); 1029848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexGend, table[_gloffset_TexGend]); 1030848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexGendv, table[_gloffset_TexGendv]); 1031848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexGenf, table[_gloffset_TexGenf]); 1032848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexGenfv, table[_gloffset_TexGenfv]); 1033848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexGeni, table[_gloffset_TexGeni]); 1034848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexGeniv, table[_gloffset_TexGeniv]); 1035848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexImage1D, table[_gloffset_TexImage1D]); 1036848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexImage2D, table[_gloffset_TexImage2D]); 1037848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexParameterf, table[_gloffset_TexParameterf]); 1038848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexParameterfv, table[_gloffset_TexParameterfv]); 1039848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexParameteri, table[_gloffset_TexParameteri]); 1040848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexParameteriv, table[_gloffset_TexParameteriv]); 1041848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTranslated, table[_gloffset_Translated]); 1042848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTranslatef, table[_gloffset_Translatef]); 1043848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2d, table[_gloffset_Vertex2d]); 1044848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2dv, table[_gloffset_Vertex2dv]); 1045848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2f, table[_gloffset_Vertex2f]); 1046848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2fv, table[_gloffset_Vertex2fv]); 1047848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2i, table[_gloffset_Vertex2i]); 1048848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2iv, table[_gloffset_Vertex2iv]); 1049848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2s, table[_gloffset_Vertex2s]); 1050848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex2sv, table[_gloffset_Vertex2sv]); 1051848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3d, table[_gloffset_Vertex3d]); 1052848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3dv, table[_gloffset_Vertex3dv]); 1053848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3f, table[_gloffset_Vertex3f]); 1054848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3fv, table[_gloffset_Vertex3fv]); 1055848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3i, table[_gloffset_Vertex3i]); 1056848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3iv, table[_gloffset_Vertex3iv]); 1057848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3s, table[_gloffset_Vertex3s]); 1058848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex3sv, table[_gloffset_Vertex3sv]); 1059848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4d, table[_gloffset_Vertex4d]); 1060848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4dv, table[_gloffset_Vertex4dv]); 1061848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4f, table[_gloffset_Vertex4f]); 1062848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4fv, table[_gloffset_Vertex4fv]); 1063848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4i, table[_gloffset_Vertex4i]); 1064848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4iv, table[_gloffset_Vertex4iv]); 1065848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4s, table[_gloffset_Vertex4s]); 1066848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertex4sv, table[_gloffset_Vertex4sv]); 1067848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glViewport, table[_gloffset_Viewport]); 1068848b8605Smrg} 1069848b8605Smrg 1070848b8605SmrgTEST_F(IndirectAPI, OpenGL_11) 1071848b8605Smrg{ 1072848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glAreTexturesResident, table[_gloffset_AreTexturesResident]); 1073848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glArrayElement, table[_gloffset_ArrayElement]); 1074848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBindTexture, table[_gloffset_BindTexture]); 1075848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorPointer, table[_gloffset_ColorPointer]); 1076848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyTexImage1D, table[_gloffset_CopyTexImage1D]); 1077848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyTexImage2D, table[_gloffset_CopyTexImage2D]); 1078848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyTexSubImage1D, table[_gloffset_CopyTexSubImage1D]); 1079848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyTexSubImage2D, table[_gloffset_CopyTexSubImage2D]); 1080848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDeleteTextures, table[_gloffset_DeleteTextures]); 1081848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDisableClientState, table[_gloffset_DisableClientState]); 1082848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDrawArrays, table[_gloffset_DrawArrays]); 1083848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDrawElements, table[_gloffset_DrawElements]); 1084848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEdgeFlagPointer, table[_gloffset_EdgeFlagPointer]); 1085848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEnableClientState, table[_gloffset_EnableClientState]); 1086848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGenTextures, table[_gloffset_GenTextures]); 1087848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetPointerv, table[_gloffset_GetPointerv]); 1088848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexPointer, table[_gloffset_IndexPointer]); 1089848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexub, table[_gloffset_Indexub]); 1090848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexubv, table[_gloffset_Indexubv]); 1091848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glInterleavedArrays, table[_gloffset_InterleavedArrays]); 1092848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIsTexture, table[_gloffset_IsTexture]); 1093848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormalPointer, table[_gloffset_NormalPointer]); 1094848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPolygonOffset, table[_gloffset_PolygonOffset]); 1095848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPopClientAttrib, table[_gloffset_PopClientAttrib]); 1096848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPrioritizeTextures, table[_gloffset_PrioritizeTextures]); 1097848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPushClientAttrib, table[_gloffset_PushClientAttrib]); 1098848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoordPointer, table[_gloffset_TexCoordPointer]); 1099848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexSubImage1D, table[_gloffset_TexSubImage1D]); 1100848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexSubImage2D, table[_gloffset_TexSubImage2D]); 1101848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexPointer, table[_gloffset_VertexPointer]); 1102848b8605Smrg} 1103848b8605Smrg 1104848b8605SmrgTEST_F(IndirectAPI, OpenGL_12) 1105848b8605Smrg{ 1106848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBlendColor, table[_gloffset_BlendColor]); 1107848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBlendEquation, table[_gloffset_BlendEquation]); 1108848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorSubTable, table[_gloffset_ColorSubTable]); 1109848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorTable, table[_gloffset_ColorTable]); 1110848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorTableParameterfv, table[_gloffset_ColorTableParameterfv]); 1111848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorTableParameteriv, table[_gloffset_ColorTableParameteriv]); 1112848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glConvolutionFilter1D, table[_gloffset_ConvolutionFilter1D]); 1113848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glConvolutionFilter2D, table[_gloffset_ConvolutionFilter2D]); 1114848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glConvolutionParameterf, table[_gloffset_ConvolutionParameterf]); 1115848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glConvolutionParameterfv, table[_gloffset_ConvolutionParameterfv]); 1116848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glConvolutionParameteri, table[_gloffset_ConvolutionParameteri]); 1117848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glConvolutionParameteriv, table[_gloffset_ConvolutionParameteriv]); 1118848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyColorSubTable, table[_gloffset_CopyColorSubTable]); 1119848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyColorTable, table[_gloffset_CopyColorTable]); 1120848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyConvolutionFilter1D, table[_gloffset_CopyConvolutionFilter1D]); 1121848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyConvolutionFilter2D, table[_gloffset_CopyConvolutionFilter2D]); 1122848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCopyTexSubImage3D, table[_gloffset_CopyTexSubImage3D]); 1123848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDrawRangeElements, table[_gloffset_DrawRangeElements]); 1124848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetColorTable, table[_gloffset_GetColorTable]); 1125848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetColorTableParameterfv, table[_gloffset_GetColorTableParameterfv]); 1126848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetColorTableParameteriv, table[_gloffset_GetColorTableParameteriv]); 1127848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetConvolutionFilter, table[_gloffset_GetConvolutionFilter]); 1128848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetConvolutionParameterfv, table[_gloffset_GetConvolutionParameterfv]); 1129848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetConvolutionParameteriv, table[_gloffset_GetConvolutionParameteriv]); 1130848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetHistogram, table[_gloffset_GetHistogram]); 1131848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetHistogramParameterfv, table[_gloffset_GetHistogramParameterfv]); 1132848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetHistogramParameteriv, table[_gloffset_GetHistogramParameteriv]); 1133848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMinmax, table[_gloffset_GetMinmax]); 1134848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMinmaxParameterfv, table[_gloffset_GetMinmaxParameterfv]); 1135848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetMinmaxParameteriv, table[_gloffset_GetMinmaxParameteriv]); 1136848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetSeparableFilter, table[_gloffset_GetSeparableFilter]); 1137848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glHistogram, table[_gloffset_Histogram]); 1138848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMinmax, table[_gloffset_Minmax]); 1139848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glResetHistogram, table[_gloffset_ResetHistogram]); 1140848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glResetMinmax, table[_gloffset_ResetMinmax]); 1141848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSeparableFilter2D, table[_gloffset_SeparableFilter2D]); 1142848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexImage3D, table[_gloffset_TexImage3D]); 1143848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexSubImage3D, table[_gloffset_TexSubImage3D]); 1144848b8605Smrg} 1145848b8605Smrg 1146848b8605SmrgTEST_F(IndirectAPI, OpenGL_20_is_nop) 1147848b8605Smrg{ 1148848b8605Smrg _glapi_proc const nop = table[_gloffset_COUNT]; 1149848b8605Smrg 1150848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glAttachShader")]); 1151848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glCreateProgram")]); 1152848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glCreateShader")]); 1153848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glDeleteProgram")]); 1154848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glDeleteShader")]); 1155848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glDetachShader")]); 1156848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glGetAttachedShaders")]); 1157848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glGetProgramInfoLog")]); 1158848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glGetProgramiv")]); 1159848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glGetShaderInfoLog")]); 1160848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glGetShaderiv")]); 1161848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glIsProgram")]); 1162848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glIsShader")]); 1163848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glStencilFuncSeparate")]); 1164848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glStencilMaskSeparate")]); 1165848b8605Smrg EXPECT_EQ(nop, table[_glapi_get_proc_offset("glStencilOpSeparate")]); 1166848b8605Smrg} 1167848b8605Smrg 1168848b8605SmrgTEST_F(IndirectAPI, ARB_multitexture) 1169848b8605Smrg{ 1170848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glActiveTexture, table[_gloffset_ActiveTexture]); 1171848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClientActiveTexture, table[_gloffset_ClientActiveTexture]); 1172848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1d, table[_gloffset_MultiTexCoord1d]); 1173848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1dv, table[_gloffset_MultiTexCoord1dv]); 1174848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1fARB, table[_gloffset_MultiTexCoord1fARB]); 1175848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1fvARB, table[_gloffset_MultiTexCoord1fvARB]); 1176848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1i, table[_gloffset_MultiTexCoord1i]); 1177848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1iv, table[_gloffset_MultiTexCoord1iv]); 1178848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1s, table[_gloffset_MultiTexCoord1s]); 1179848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord1sv, table[_gloffset_MultiTexCoord1sv]); 1180848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2d, table[_gloffset_MultiTexCoord2d]); 1181848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2dv, table[_gloffset_MultiTexCoord2dv]); 1182848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2fARB, table[_gloffset_MultiTexCoord2fARB]); 1183848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2fvARB, table[_gloffset_MultiTexCoord2fvARB]); 1184848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2i, table[_gloffset_MultiTexCoord2i]); 1185848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2iv, table[_gloffset_MultiTexCoord2iv]); 1186848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2s, table[_gloffset_MultiTexCoord2s]); 1187848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord2sv, table[_gloffset_MultiTexCoord2sv]); 1188848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3d, table[_gloffset_MultiTexCoord3d]); 1189848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3dv, table[_gloffset_MultiTexCoord3dv]); 1190848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3fARB, table[_gloffset_MultiTexCoord3fARB]); 1191848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3fvARB, table[_gloffset_MultiTexCoord3fvARB]); 1192848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3i, table[_gloffset_MultiTexCoord3i]); 1193848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3iv, table[_gloffset_MultiTexCoord3iv]); 1194848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3s, table[_gloffset_MultiTexCoord3s]); 1195848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord3sv, table[_gloffset_MultiTexCoord3sv]); 1196848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4d, table[_gloffset_MultiTexCoord4d]); 1197848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4dv, table[_gloffset_MultiTexCoord4dv]); 1198848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4fARB, table[_gloffset_MultiTexCoord4fARB]); 1199848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4fvARB, table[_gloffset_MultiTexCoord4fvARB]); 1200848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4i, table[_gloffset_MultiTexCoord4i]); 1201848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4iv, table[_gloffset_MultiTexCoord4iv]); 1202848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4s, table[_gloffset_MultiTexCoord4s]); 1203848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiTexCoord4sv, table[_gloffset_MultiTexCoord4sv]); 1204848b8605Smrg} 1205848b8605Smrg 1206848b8605SmrgTEST_F(IndirectAPI, ARB_transpose_matrix) 1207848b8605Smrg{ 1208848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLoadTransposeMatrixd, table[_glapi_get_proc_offset("glLoadTransposeMatrixdARB")]); 1209848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLoadTransposeMatrixf, table[_glapi_get_proc_offset("glLoadTransposeMatrixfARB")]); 1210848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultTransposeMatrixd, table[_glapi_get_proc_offset("glMultTransposeMatrixdARB")]); 1211848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultTransposeMatrixf, table[_glapi_get_proc_offset("glMultTransposeMatrixfARB")]); 1212848b8605Smrg} 1213848b8605Smrg 1214848b8605SmrgTEST_F(IndirectAPI, ARB_multisample) 1215848b8605Smrg{ 1216848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSampleCoverage, table[_glapi_get_proc_offset("glSampleCoverageARB")]); 1217848b8605Smrg} 1218848b8605Smrg 1219848b8605SmrgTEST_F(IndirectAPI, ARB_texture_compression) 1220848b8605Smrg{ 1221848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCompressedTexImage1D, table[_glapi_get_proc_offset("glCompressedTexImage1DARB")]); 1222848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCompressedTexImage2D, table[_glapi_get_proc_offset("glCompressedTexImage2DARB")]); 1223848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCompressedTexImage3D, table[_glapi_get_proc_offset("glCompressedTexImage3DARB")]); 1224848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCompressedTexSubImage1D, table[_glapi_get_proc_offset("glCompressedTexSubImage1DARB")]); 1225848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCompressedTexSubImage2D, table[_glapi_get_proc_offset("glCompressedTexSubImage2DARB")]); 1226848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCompressedTexSubImage3D, table[_glapi_get_proc_offset("glCompressedTexSubImage3DARB")]); 1227848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetCompressedTexImage, table[_glapi_get_proc_offset("glGetCompressedTexImageARB")]); 1228848b8605Smrg} 1229848b8605Smrg 1230848b8605SmrgTEST_F(IndirectAPI, ARB_vertex_program) 1231848b8605Smrg{ 1232848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDisableVertexAttribArray, table[_glapi_get_proc_offset("glDisableVertexAttribArrayARB")]); 1233848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEnableVertexAttribArray, table[_glapi_get_proc_offset("glEnableVertexAttribArrayARB")]); 1234848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramEnvParameterdvARB, table[_glapi_get_proc_offset("glGetProgramEnvParameterdvARB")]); 1235848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramEnvParameterfvARB, table[_glapi_get_proc_offset("glGetProgramEnvParameterfvARB")]); 1236848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramLocalParameterdvARB, table[_glapi_get_proc_offset("glGetProgramLocalParameterdvARB")]); 1237848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramLocalParameterfvARB, table[_glapi_get_proc_offset("glGetProgramLocalParameterfvARB")]); 1238848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramStringARB, table[_glapi_get_proc_offset("glGetProgramStringARB")]); 1239848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramivARB, table[_glapi_get_proc_offset("glGetProgramivARB")]); 1240848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetVertexAttribdv, table[_glapi_get_proc_offset("glGetVertexAttribdvARB")]); 1241848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetVertexAttribfv, table[_glapi_get_proc_offset("glGetVertexAttribfvARB")]); 1242848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetVertexAttribiv, table[_glapi_get_proc_offset("glGetVertexAttribivARB")]); 1243848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramEnvParameter4dARB, table[_glapi_get_proc_offset("glProgramEnvParameter4dARB")]); 1244848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramEnvParameter4dvARB, table[_glapi_get_proc_offset("glProgramEnvParameter4dvARB")]); 1245848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramEnvParameter4fARB, table[_glapi_get_proc_offset("glProgramEnvParameter4fARB")]); 1246848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramEnvParameter4fvARB, table[_glapi_get_proc_offset("glProgramEnvParameter4fvARB")]); 1247848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramLocalParameter4dARB, table[_glapi_get_proc_offset("glProgramLocalParameter4dARB")]); 1248848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramLocalParameter4dvARB, table[_glapi_get_proc_offset("glProgramLocalParameter4dvARB")]); 1249848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramLocalParameter4fARB, table[_glapi_get_proc_offset("glProgramLocalParameter4fARB")]); 1250848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramLocalParameter4fvARB, table[_glapi_get_proc_offset("glProgramLocalParameter4fvARB")]); 1251848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramStringARB, table[_glapi_get_proc_offset("glProgramStringARB")]); 1252848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1d, table[_glapi_get_proc_offset("glVertexAttrib1dARB")]); 1253848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1dv, table[_glapi_get_proc_offset("glVertexAttrib1dvARB")]); 1254848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1fARB, table[_glapi_get_proc_offset("glVertexAttrib1fARB")]); 1255848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1fvARB, table[_glapi_get_proc_offset("glVertexAttrib1fvARB")]); 1256848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1s, table[_glapi_get_proc_offset("glVertexAttrib1sARB")]); 1257848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1sv, table[_glapi_get_proc_offset("glVertexAttrib1svARB")]); 1258848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2d, table[_glapi_get_proc_offset("glVertexAttrib2dARB")]); 1259848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2dv, table[_glapi_get_proc_offset("glVertexAttrib2dvARB")]); 1260848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2fARB, table[_glapi_get_proc_offset("glVertexAttrib2fARB")]); 1261848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2fvARB, table[_glapi_get_proc_offset("glVertexAttrib2fvARB")]); 1262848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2s, table[_glapi_get_proc_offset("glVertexAttrib2sARB")]); 1263848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2sv, table[_glapi_get_proc_offset("glVertexAttrib2svARB")]); 1264848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3d, table[_glapi_get_proc_offset("glVertexAttrib3dARB")]); 1265848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3dv, table[_glapi_get_proc_offset("glVertexAttrib3dvARB")]); 1266848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3fARB, table[_glapi_get_proc_offset("glVertexAttrib3fARB")]); 1267848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3fvARB, table[_glapi_get_proc_offset("glVertexAttrib3fvARB")]); 1268848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3s, table[_glapi_get_proc_offset("glVertexAttrib3sARB")]); 1269848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3sv, table[_glapi_get_proc_offset("glVertexAttrib3svARB")]); 1270848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4Nbv, table[_glapi_get_proc_offset("glVertexAttrib4NbvARB")]); 1271848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4Niv, table[_glapi_get_proc_offset("glVertexAttrib4NivARB")]); 1272848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4Nsv, table[_glapi_get_proc_offset("glVertexAttrib4NsvARB")]); 1273848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4Nub, table[_glapi_get_proc_offset("glVertexAttrib4NubARB")]); 1274848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4Nubv, table[_glapi_get_proc_offset("glVertexAttrib4NubvARB")]); 1275848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4Nuiv, table[_glapi_get_proc_offset("glVertexAttrib4NuivARB")]); 1276848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4Nusv, table[_glapi_get_proc_offset("glVertexAttrib4NusvARB")]); 1277848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4bv, table[_glapi_get_proc_offset("glVertexAttrib4bvARB")]); 1278848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4d, table[_glapi_get_proc_offset("glVertexAttrib4dARB")]); 1279848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4dv, table[_glapi_get_proc_offset("glVertexAttrib4dvARB")]); 1280848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4fARB, table[_glapi_get_proc_offset("glVertexAttrib4fARB")]); 1281848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4fvARB, table[_glapi_get_proc_offset("glVertexAttrib4fvARB")]); 1282848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4iv, table[_glapi_get_proc_offset("glVertexAttrib4ivARB")]); 1283848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4s, table[_glapi_get_proc_offset("glVertexAttrib4sARB")]); 1284848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4sv, table[_glapi_get_proc_offset("glVertexAttrib4svARB")]); 1285848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4ubv, table[_glapi_get_proc_offset("glVertexAttrib4ubvARB")]); 1286848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4uiv, table[_glapi_get_proc_offset("glVertexAttrib4uivARB")]); 1287848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4usv, table[_glapi_get_proc_offset("glVertexAttrib4usvARB")]); 1288848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribPointer, table[_glapi_get_proc_offset("glVertexAttribPointerARB")]); 1289848b8605Smrg} 1290848b8605Smrg 1291848b8605SmrgTEST_F(IndirectAPI, ARB_occlusion_query) 1292848b8605Smrg{ 1293848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBeginQuery, table[_glapi_get_proc_offset("glBeginQueryARB")]); 1294848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDeleteQueries, table[_glapi_get_proc_offset("glDeleteQueriesARB")]); 1295848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEndQuery, table[_glapi_get_proc_offset("glEndQueryARB")]); 1296848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGenQueries, table[_glapi_get_proc_offset("glGenQueriesARB")]); 1297848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetQueryObjectiv, table[_glapi_get_proc_offset("glGetQueryObjectivARB")]); 1298848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetQueryObjectuiv, table[_glapi_get_proc_offset("glGetQueryObjectuivARB")]); 1299848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetQueryiv, table[_glapi_get_proc_offset("glGetQueryivARB")]); 1300848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIsQuery, table[_glapi_get_proc_offset("glIsQueryARB")]); 1301848b8605Smrg} 1302848b8605Smrg 1303848b8605SmrgTEST_F(IndirectAPI, ARB_draw_buffers) 1304848b8605Smrg{ 1305848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDrawBuffers, table[_glapi_get_proc_offset("glDrawBuffersARB")]); 1306848b8605Smrg} 1307848b8605Smrg 1308848b8605SmrgTEST_F(IndirectAPI, ARB_color_buffer_float) 1309848b8605Smrg{ 1310848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glClampColor, table[_glapi_get_proc_offset("glClampColorARB")]); 1311848b8605Smrg} 1312848b8605Smrg 1313848b8605SmrgTEST_F(IndirectAPI, ARB_framebuffer_object) 1314848b8605Smrg{ 1315848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRenderbufferStorageMultisample, table[_glapi_get_proc_offset("glRenderbufferStorageMultisample")]); 1316848b8605Smrg} 1317848b8605Smrg 1318848b8605SmrgTEST_F(IndirectAPI, SGIS_multisample) 1319848b8605Smrg{ 1320848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSampleMaskSGIS, table[_glapi_get_proc_offset("glSampleMaskSGIS")]); 1321848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSamplePatternSGIS, table[_glapi_get_proc_offset("glSamplePatternSGIS")]); 1322848b8605Smrg} 1323848b8605Smrg 1324848b8605SmrgTEST_F(IndirectAPI, EXT_vertex_array) 1325848b8605Smrg{ 1326848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glColorPointerEXT, table[_glapi_get_proc_offset("glColorPointerEXT")]); 1327848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glEdgeFlagPointerEXT, table[_glapi_get_proc_offset("glEdgeFlagPointerEXT")]); 1328848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIndexPointerEXT, table[_glapi_get_proc_offset("glIndexPointerEXT")]); 1329848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glNormalPointerEXT, table[_glapi_get_proc_offset("glNormalPointerEXT")]); 1330848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTexCoordPointerEXT, table[_glapi_get_proc_offset("glTexCoordPointerEXT")]); 1331848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexPointerEXT, table[_glapi_get_proc_offset("glVertexPointerEXT")]); 1332848b8605Smrg} 1333848b8605Smrg 1334848b8605SmrgTEST_F(IndirectAPI, EXT_point_parameters) 1335848b8605Smrg{ 1336848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPointParameterf, table[_glapi_get_proc_offset("glPointParameterfEXT")]); 1337848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPointParameterfv, table[_glapi_get_proc_offset("glPointParameterfvEXT")]); 1338848b8605Smrg} 1339848b8605Smrg 1340848b8605SmrgTEST_F(IndirectAPI, EXT_secondary_color) 1341848b8605Smrg{ 1342848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3b, table[_glapi_get_proc_offset("glSecondaryColor3bEXT")]); 1343848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3bv, table[_glapi_get_proc_offset("glSecondaryColor3bvEXT")]); 1344848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3d, table[_glapi_get_proc_offset("glSecondaryColor3dEXT")]); 1345848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3dv, table[_glapi_get_proc_offset("glSecondaryColor3dvEXT")]); 1346848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3fEXT, table[_glapi_get_proc_offset("glSecondaryColor3fEXT")]); 1347848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3fvEXT, table[_glapi_get_proc_offset("glSecondaryColor3fvEXT")]); 1348848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3i, table[_glapi_get_proc_offset("glSecondaryColor3iEXT")]); 1349848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3iv, table[_glapi_get_proc_offset("glSecondaryColor3ivEXT")]); 1350848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3s, table[_glapi_get_proc_offset("glSecondaryColor3sEXT")]); 1351848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3sv, table[_glapi_get_proc_offset("glSecondaryColor3svEXT")]); 1352848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3ub, table[_glapi_get_proc_offset("glSecondaryColor3ubEXT")]); 1353848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3ubv, table[_glapi_get_proc_offset("glSecondaryColor3ubvEXT")]); 1354848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3ui, table[_glapi_get_proc_offset("glSecondaryColor3uiEXT")]); 1355848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3uiv, table[_glapi_get_proc_offset("glSecondaryColor3uivEXT")]); 1356848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3us, table[_glapi_get_proc_offset("glSecondaryColor3usEXT")]); 1357848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColor3usv, table[_glapi_get_proc_offset("glSecondaryColor3usvEXT")]); 1358848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glSecondaryColorPointer, table[_glapi_get_proc_offset("glSecondaryColorPointerEXT")]); 1359848b8605Smrg} 1360848b8605Smrg 1361848b8605SmrgTEST_F(IndirectAPI, EXT_multi_draw_arrays) 1362848b8605Smrg{ 1363848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiDrawArrays, table[_glapi_get_proc_offset("glMultiDrawArraysEXT")]); 1364848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glMultiDrawElementsEXT, table[_glapi_get_proc_offset("glMultiDrawElementsEXT")]); 1365848b8605Smrg} 1366848b8605Smrg 1367848b8605SmrgTEST_F(IndirectAPI, EXT_fog_coord) 1368848b8605Smrg{ 1369848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogCoordPointer, table[_glapi_get_proc_offset("glFogCoordPointerEXT")]); 1370848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogCoordd, table[_glapi_get_proc_offset("glFogCoorddEXT")]); 1371848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogCoorddv, table[_glapi_get_proc_offset("glFogCoorddvEXT")]); 1372848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogCoordfEXT, table[_glapi_get_proc_offset("glFogCoordfEXT")]); 1373848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFogCoordfvEXT, table[_glapi_get_proc_offset("glFogCoordfvEXT")]); 1374848b8605Smrg} 1375848b8605Smrg 1376848b8605SmrgTEST_F(IndirectAPI, EXT_blend_func_separate) 1377848b8605Smrg{ 1378848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBlendFuncSeparate, table[_glapi_get_proc_offset("glBlendFuncSeparateEXT")]); 1379848b8605Smrg} 1380848b8605Smrg 1381848b8605SmrgTEST_F(IndirectAPI, MESA_window_pos) 1382848b8605Smrg{ 1383848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2d, table[_glapi_get_proc_offset("glWindowPos2dMESA")]); 1384848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2dv, table[_glapi_get_proc_offset("glWindowPos2dvMESA")]); 1385848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2f, table[_glapi_get_proc_offset("glWindowPos2fMESA")]); 1386848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2fv, table[_glapi_get_proc_offset("glWindowPos2fvMESA")]); 1387848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2i, table[_glapi_get_proc_offset("glWindowPos2iMESA")]); 1388848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2iv, table[_glapi_get_proc_offset("glWindowPos2ivMESA")]); 1389848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2s, table[_glapi_get_proc_offset("glWindowPos2sMESA")]); 1390848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos2sv, table[_glapi_get_proc_offset("glWindowPos2svMESA")]); 1391848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3d, table[_glapi_get_proc_offset("glWindowPos3dMESA")]); 1392848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3dv, table[_glapi_get_proc_offset("glWindowPos3dvMESA")]); 1393848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3f, table[_glapi_get_proc_offset("glWindowPos3fMESA")]); 1394848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3fv, table[_glapi_get_proc_offset("glWindowPos3fvMESA")]); 1395848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3i, table[_glapi_get_proc_offset("glWindowPos3iMESA")]); 1396848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3iv, table[_glapi_get_proc_offset("glWindowPos3ivMESA")]); 1397848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3s, table[_glapi_get_proc_offset("glWindowPos3sMESA")]); 1398848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glWindowPos3sv, table[_glapi_get_proc_offset("glWindowPos3svMESA")]); 1399848b8605Smrg} 1400848b8605Smrg 1401848b8605SmrgTEST_F(IndirectAPI, NV_vertex_program) 1402848b8605Smrg{ 1403848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glAreProgramsResidentNV, table[_glapi_get_proc_offset("glAreProgramsResidentNV")]); 1404848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBindProgramARB, table[_glapi_get_proc_offset("glBindProgramNV")]); 1405848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDeleteProgramsARB, table[_glapi_get_proc_offset("glDeleteProgramsNV")]); 1406848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glExecuteProgramNV, table[_glapi_get_proc_offset("glExecuteProgramNV")]); 1407848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGenProgramsARB, table[_glapi_get_proc_offset("glGenProgramsNV")]); 1408848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramParameterdvNV, table[_glapi_get_proc_offset("glGetProgramParameterdvNV")]); 1409848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramParameterfvNV, table[_glapi_get_proc_offset("glGetProgramParameterfvNV")]); 1410848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramStringNV, table[_glapi_get_proc_offset("glGetProgramStringNV")]); 1411848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramivNV, table[_glapi_get_proc_offset("glGetProgramivNV")]); 1412848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetTrackMatrixivNV, table[_glapi_get_proc_offset("glGetTrackMatrixivNV")]); 1413848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetVertexAttribPointerv, table[_glapi_get_proc_offset("glGetVertexAttribPointervNV")]); 1414848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetVertexAttribdvNV, table[_glapi_get_proc_offset("glGetVertexAttribdvNV")]); 1415848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetVertexAttribfvNV, table[_glapi_get_proc_offset("glGetVertexAttribfvNV")]); 1416848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetVertexAttribivNV, table[_glapi_get_proc_offset("glGetVertexAttribivNV")]); 1417848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIsProgramARB, table[_glapi_get_proc_offset("glIsProgramNV")]); 1418848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glLoadProgramNV, table[_glapi_get_proc_offset("glLoadProgramNV")]); 1419848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramParameters4dvNV, table[_glapi_get_proc_offset("glProgramParameters4dvNV")]); 1420848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramParameters4fvNV, table[_glapi_get_proc_offset("glProgramParameters4fvNV")]); 1421848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRequestResidentProgramsNV, table[_glapi_get_proc_offset("glRequestResidentProgramsNV")]); 1422848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glTrackMatrixNV, table[_glapi_get_proc_offset("glTrackMatrixNV")]); 1423848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1dNV, table[_glapi_get_proc_offset("glVertexAttrib1dNV")]); 1424848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1dvNV, table[_glapi_get_proc_offset("glVertexAttrib1dvNV")]); 1425848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1fNV, table[_glapi_get_proc_offset("glVertexAttrib1fNV")]); 1426848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1fvNV, table[_glapi_get_proc_offset("glVertexAttrib1fvNV")]); 1427848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1sNV, table[_glapi_get_proc_offset("glVertexAttrib1sNV")]); 1428848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib1svNV, table[_glapi_get_proc_offset("glVertexAttrib1svNV")]); 1429848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2dNV, table[_glapi_get_proc_offset("glVertexAttrib2dNV")]); 1430848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2dvNV, table[_glapi_get_proc_offset("glVertexAttrib2dvNV")]); 1431848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2fNV, table[_glapi_get_proc_offset("glVertexAttrib2fNV")]); 1432848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2fvNV, table[_glapi_get_proc_offset("glVertexAttrib2fvNV")]); 1433848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2sNV, table[_glapi_get_proc_offset("glVertexAttrib2sNV")]); 1434848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib2svNV, table[_glapi_get_proc_offset("glVertexAttrib2svNV")]); 1435848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3dNV, table[_glapi_get_proc_offset("glVertexAttrib3dNV")]); 1436848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3dvNV, table[_glapi_get_proc_offset("glVertexAttrib3dvNV")]); 1437848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3fNV, table[_glapi_get_proc_offset("glVertexAttrib3fNV")]); 1438848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3fvNV, table[_glapi_get_proc_offset("glVertexAttrib3fvNV")]); 1439848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3sNV, table[_glapi_get_proc_offset("glVertexAttrib3sNV")]); 1440848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib3svNV, table[_glapi_get_proc_offset("glVertexAttrib3svNV")]); 1441848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4dNV, table[_glapi_get_proc_offset("glVertexAttrib4dNV")]); 1442848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4dvNV, table[_glapi_get_proc_offset("glVertexAttrib4dvNV")]); 1443848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4fNV, table[_glapi_get_proc_offset("glVertexAttrib4fNV")]); 1444848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4fvNV, table[_glapi_get_proc_offset("glVertexAttrib4fvNV")]); 1445848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4sNV, table[_glapi_get_proc_offset("glVertexAttrib4sNV")]); 1446848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4svNV, table[_glapi_get_proc_offset("glVertexAttrib4svNV")]); 1447848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4ubNV, table[_glapi_get_proc_offset("glVertexAttrib4ubNV")]); 1448848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttrib4ubvNV, table[_glapi_get_proc_offset("glVertexAttrib4ubvNV")]); 1449848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribPointerNV, table[_glapi_get_proc_offset("glVertexAttribPointerNV")]); 1450848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs1dvNV, table[_glapi_get_proc_offset("glVertexAttribs1dvNV")]); 1451848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs1fvNV, table[_glapi_get_proc_offset("glVertexAttribs1fvNV")]); 1452848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs1svNV, table[_glapi_get_proc_offset("glVertexAttribs1svNV")]); 1453848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs2dvNV, table[_glapi_get_proc_offset("glVertexAttribs2dvNV")]); 1454848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs2fvNV, table[_glapi_get_proc_offset("glVertexAttribs2fvNV")]); 1455848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs2svNV, table[_glapi_get_proc_offset("glVertexAttribs2svNV")]); 1456848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs3dvNV, table[_glapi_get_proc_offset("glVertexAttribs3dvNV")]); 1457848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs3fvNV, table[_glapi_get_proc_offset("glVertexAttribs3fvNV")]); 1458848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs3svNV, table[_glapi_get_proc_offset("glVertexAttribs3svNV")]); 1459848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs4dvNV, table[_glapi_get_proc_offset("glVertexAttribs4dvNV")]); 1460848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs4fvNV, table[_glapi_get_proc_offset("glVertexAttribs4fvNV")]); 1461848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs4svNV, table[_glapi_get_proc_offset("glVertexAttribs4svNV")]); 1462848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glVertexAttribs4ubvNV, table[_glapi_get_proc_offset("glVertexAttribs4ubvNV")]); 1463848b8605Smrg} 1464848b8605Smrg 1465848b8605SmrgTEST_F(IndirectAPI, NV_point_sprite) 1466848b8605Smrg{ 1467848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPointParameteri, table[_glapi_get_proc_offset("glPointParameteriNV")]); 1468848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glPointParameteriv, table[_glapi_get_proc_offset("glPointParameterivNV")]); 1469848b8605Smrg} 1470848b8605Smrg 1471848b8605SmrgTEST_F(IndirectAPI, EXT_stencil_two_side) 1472848b8605Smrg{ 1473848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glActiveStencilFaceEXT, table[_glapi_get_proc_offset("glActiveStencilFaceEXT")]); 1474848b8605Smrg} 1475848b8605Smrg 1476848b8605SmrgTEST_F(IndirectAPI, NV_fragment_program) 1477848b8605Smrg{ 1478848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramNamedParameterdvNV, table[_glapi_get_proc_offset("glGetProgramNamedParameterdvNV")]); 1479848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetProgramNamedParameterfvNV, table[_glapi_get_proc_offset("glGetProgramNamedParameterfvNV")]); 1480848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramNamedParameter4dNV, table[_glapi_get_proc_offset("glProgramNamedParameter4dNV")]); 1481848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramNamedParameter4dvNV, table[_glapi_get_proc_offset("glProgramNamedParameter4dvNV")]); 1482848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramNamedParameter4fNV, table[_glapi_get_proc_offset("glProgramNamedParameter4fNV")]); 1483848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glProgramNamedParameter4fvNV, table[_glapi_get_proc_offset("glProgramNamedParameter4fvNV")]); 1484848b8605Smrg} 1485848b8605Smrg 1486848b8605SmrgTEST_F(IndirectAPI, EXT_blend_equation_separate) 1487848b8605Smrg{ 1488848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBlendEquationSeparate, table[_glapi_get_proc_offset("glBlendEquationSeparateEXT")]); 1489848b8605Smrg} 1490848b8605Smrg 1491848b8605SmrgTEST_F(IndirectAPI, EXT_framebuffer_object) 1492848b8605Smrg{ 1493848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBindFramebufferEXT, table[_glapi_get_proc_offset("glBindFramebufferEXT")]); 1494848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBindRenderbufferEXT, table[_glapi_get_proc_offset("glBindRenderbufferEXT")]); 1495848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBindFramebuffer, table[_glapi_get_proc_offset("glBindFramebuffer")]); 1496848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBindRenderbuffer, table[_glapi_get_proc_offset("glBindRenderbuffer")]); 1497848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glCheckFramebufferStatus, table[_glapi_get_proc_offset("glCheckFramebufferStatusEXT")]); 1498848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDeleteFramebuffers, table[_glapi_get_proc_offset("glDeleteFramebuffersEXT")]); 1499848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glDeleteRenderbuffers, table[_glapi_get_proc_offset("glDeleteRenderbuffersEXT")]); 1500848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFramebufferRenderbuffer, table[_glapi_get_proc_offset("glFramebufferRenderbufferEXT")]); 1501848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFramebufferTexture1D, table[_glapi_get_proc_offset("glFramebufferTexture1DEXT")]); 1502848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFramebufferTexture2D, table[_glapi_get_proc_offset("glFramebufferTexture2DEXT")]); 1503848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFramebufferTexture3D, table[_glapi_get_proc_offset("glFramebufferTexture3DEXT")]); 1504848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGenFramebuffers, table[_glapi_get_proc_offset("glGenFramebuffersEXT")]); 1505848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGenRenderbuffers, table[_glapi_get_proc_offset("glGenRenderbuffersEXT")]); 1506848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGenerateMipmap, table[_glapi_get_proc_offset("glGenerateMipmapEXT")]); 1507848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetFramebufferAttachmentParameteriv, table[_glapi_get_proc_offset("glGetFramebufferAttachmentParameterivEXT")]); 1508848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glGetRenderbufferParameteriv, table[_glapi_get_proc_offset("glGetRenderbufferParameterivEXT")]); 1509848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIsFramebuffer, table[_glapi_get_proc_offset("glIsFramebufferEXT")]); 1510848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glIsRenderbuffer, table[_glapi_get_proc_offset("glIsRenderbufferEXT")]); 1511848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glRenderbufferStorage, table[_glapi_get_proc_offset("glRenderbufferStorageEXT")]); 1512848b8605Smrg} 1513848b8605Smrg 1514848b8605SmrgTEST_F(IndirectAPI, EXT_framebuffer_blit) 1515848b8605Smrg{ 1516848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glBlitFramebuffer, table[_glapi_get_proc_offset("glBlitFramebufferEXT")]); 1517848b8605Smrg} 1518848b8605Smrg 1519848b8605SmrgTEST_F(IndirectAPI, EXT_texture_array) 1520848b8605Smrg{ 1521848b8605Smrg EXPECT_EQ((_glapi_proc) __indirect_glFramebufferTextureLayer, table[_glapi_get_proc_offset("glFramebufferTextureLayerEXT")]); 1522848b8605Smrg} 1523b8e80941Smrg 1524b8e80941Smrg#endif 1525