summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-01-21 04:13:49 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-01-21 04:13:49 +0000
commite98986bdd3bb33583e9c0f275a93e4cfddd3b11d (patch)
tree48dbde0bd3c97d4a549f878551ea6361f4af6f6b /src/mesa
parenta999e809af97e32cc1198ca816dcacc735a0a4af (diff)
don't call glVertex functions directly, call _glapi_Dispatch->Vertex(), etc
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/api_loopback.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mesa/main/api_loopback.c b/src/mesa/main/api_loopback.c
index 33e7ee8e71..55ddb1c14a 100644
--- a/src/mesa/main/api_loopback.c
+++ b/src/mesa/main/api_loopback.c
@@ -6,9 +6,9 @@
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.1
*
- * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -45,24 +45,24 @@
* listed in dd.h. The easiest way for a driver to do this is to
* install the supplied software t&l module.
*/
-#define COLORF(r,g,b,a) glColor4f(r,g,b,a)
-#define VERTEX2(x,y) glVertex2f(x,y)
-#define VERTEX3(x,y,z) glVertex3f(x,y,z)
-#define VERTEX4(x,y,z,w) glVertex4f(x,y,z,w)
-#define NORMAL(x,y,z) glNormal3f(x,y,z)
-#define TEXCOORD1(s) glTexCoord1f(s)
-#define TEXCOORD2(s,t) glTexCoord2f(s,t)
-#define TEXCOORD3(s,t,u) glTexCoord3f(s,t,u)
-#define TEXCOORD4(s,t,u,v) glTexCoord4f(s,t,u,v)
-#define INDEX(c) glIndexf(c)
-#define MULTI_TEXCOORD1(z,s) glMultiTexCoord1fARB(z,s)
-#define MULTI_TEXCOORD2(z,s,t) glMultiTexCoord2fARB(z,s,t)
-#define MULTI_TEXCOORD3(z,s,t,u) glMultiTexCoord3fARB(z,s,t,u)
-#define MULTI_TEXCOORD4(z,s,t,u,v) glMultiTexCoord4fARB(z,s,t,u,v)
-#define EVALCOORD1(x) glEvalCoord1f(x)
-#define EVALCOORD2(x,y) glEvalCoord2f(x,y)
-#define MATERIALFV(a,b,c) glMaterialfv(a,b,c)
-#define RECTF(a,b,c,d) glRectf(a,b,c,d)
+#define COLORF(r,g,b,a) _glapi_Dispatch->Color4f(r,g,b,a)
+#define VERTEX2(x,y) _glapi_Dispatch->Vertex2f(x,y)
+#define VERTEX3(x,y,z) _glapi_Dispatch->Vertex3f(x,y,z)
+#define VERTEX4(x,y,z,w) _glapi_Dispatch->Vertex4f(x,y,z,w)
+#define NORMAL(x,y,z) _glapi_Dispatch->Normal3f(x,y,z)
+#define TEXCOORD1(s) _glapi_Dispatch->TexCoord1f(s)
+#define TEXCOORD2(s,t) _glapi_Dispatch->TexCoord2f(s,t)
+#define TEXCOORD3(s,t,u) _glapi_Dispatch->TexCoord3f(s,t,u)
+#define TEXCOORD4(s,t,u,v) _glapi_Dispatch->TexCoord4f(s,t,u,v)
+#define INDEX(c) _glapi_Dispatch->Indexf(c)
+#define MULTI_TEXCOORD1(z,s) _glapi_Dispatch->MultiTexCoord1fARB(z,s)
+#define MULTI_TEXCOORD2(z,s,t) _glapi_Dispatch->MultiTexCoord2fARB(z,s,t)
+#define MULTI_TEXCOORD3(z,s,t,u) _glapi_Dispatch->MultiTexCoord3fARB(z,s,t,u)
+#define MULTI_TEXCOORD4(z,s,t,u,v) _glapi_Dispatch->MultiTexCoord4fARB(z,s,t,u,v)
+#define EVALCOORD1(x) _glapi_Dispatch->EvalCoord1f(x)
+#define EVALCOORD2(x,y) _glapi_Dispatch->EvalCoord2f(x,y)
+#define MATERIALFV(a,b,c) _glapi_Dispatch->Materialfv(a,b,c)
+#define RECTF(a,b,c,d) _glapi_Dispatch->Rectf(a,b,c,d)
/* Extension functions must be dereferenced through _glapi_Dispatch as
* not all libGL.so's will have all the uptodate entrypoints.