summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2004-12-01 08:42:31 +0000
committerIan Romanick <[email protected]>2004-12-01 08:42:31 +0000
commit529381ff750774a67d7f17de89e554123c221c86 (patch)
tree68dfd3eaa691ed5d1251f086ac99afa5b714592c
parente9789cf07186e710ee212effb2c25be96f7cbff2 (diff)
Make the transition to script-genereated GLX code easier.
Convert GL 1.4 / ARB_point_parameter function names to EXT_point_parameter / NV_point_sprite names.
-rw-r--r--src/glx/x11/compsize.c6
-rw-r--r--src/glx/x11/indirect.h9
-rw-r--r--src/glx/x11/indirect_init.c8
-rw-r--r--src/glx/x11/size.h4
4 files changed, 16 insertions, 11 deletions
diff --git a/src/glx/x11/compsize.c b/src/glx/x11/compsize.c
index a42e448e460..3a562b91d71 100644
--- a/src/glx/x11/compsize.c
+++ b/src/glx/x11/compsize.c
@@ -497,7 +497,7 @@ GLint __glConvolutionParameteriv_size(GLenum pname)
return __glConvolutionParameterfv_size(pname);
}
-GLint __glPointParameterfvARB_size(GLenum e)
+GLint __glPointParameterfvEXT_size(GLenum e)
{
switch (e) {
case GL_POINT_SIZE_MIN:
@@ -516,7 +516,7 @@ GLint __glPointParameterfvARB_size(GLenum e)
}
}
-GLint __glPointParameteriv_size(GLenum e)
+GLint __glPointParameterivNV_size(GLenum e)
{
- return __glPointParameterfvARB_size(e);
+ return __glPointParameterfvEXT_size(e);
}
diff --git a/src/glx/x11/indirect.h b/src/glx/x11/indirect.h
index 442c4ab53b3..8b5db1b421e 100644
--- a/src/glx/x11/indirect.h
+++ b/src/glx/x11/indirect.h
@@ -404,8 +404,13 @@ glxvendr_enum1_4(MultiTexCoord4i, X_GLrop_MultiTexCoord4ivARB, GLint, ARB)
glxvendr_enum1_4(MultiTexCoord4f, X_GLrop_MultiTexCoord4fvARB, GLfloat, ARB)
glxvendr_enum1_4(MultiTexCoord4d, X_GLrop_MultiTexCoord4dvARB, GLdouble, ARB)
-glxvendr_enum1_V(PointParameterf, X_GLrop_PointParameterf, GLfloat, ARB)
-glxproto_enum1_V(PointParameteri, X_GLrop_PointParameteri, GLint)
+#define X_GLrop_PointParameterfEXT 2065
+#define X_GLrop_PointParameterfvEXT 2066
+#define X_GLrop_PointParameteriNV 4221
+#define X_GLrop_PointParameterivNV 4222
+
+glxvendr_enum1_V(PointParameterf, X_GLrop_PointParameterf, GLfloat, EXT)
+glxvendr_enum1_V(PointParameteri, X_GLrop_PointParameteri, GLint, NV)
glxvendr_3(WindowPos3f, X_GLrop_WindowPos3fARB, GLfloat, MESA)
diff --git a/src/glx/x11/indirect_init.c b/src/glx/x11/indirect_init.c
index 5fcfab61f1b..29c2eb5d39d 100644
--- a/src/glx/x11/indirect_init.c
+++ b/src/glx/x11/indirect_init.c
@@ -503,8 +503,8 @@ __GLapi *__glXNewIndirectAPI(void)
glAPI->CompressedTexSubImage3DARB = __indirect_glCompressedTexSubImage3DARB;
/* ARB 14. GL_ARB_point_parameters */
- glAPI->PointParameterfEXT = __indirect_glPointParameterfARB;
- glAPI->PointParameterfvEXT = __indirect_glPointParameterfvARB;
+ glAPI->PointParameterfEXT = __indirect_glPointParameterfEXT;
+ glAPI->PointParameterfvEXT = __indirect_glPointParameterfvEXT;
/* ARB 15. GL_ARB_window_pos */
glAPI->WindowPos2dMESA = __indirect_glWindowPos2dMESA;
@@ -567,8 +567,8 @@ __GLapi *__glXNewIndirectAPI(void)
glAPI->BlendFuncSeparateEXT = __indirect_glBlendFuncSeparate;
/* 262. GL_NV_point_sprite / GL 1.4 */
- glAPI->PointParameteriNV = __indirect_glPointParameteri;
- glAPI->PointParameterivNV = __indirect_glPointParameteriv;
+ glAPI->PointParameteriNV = __indirect_glPointParameteriNV;
+ glAPI->PointParameterivNV = __indirect_glPointParameterivNV;
/* 268. GL_EXT_stencil_two_side */
glAPI->ActiveStencilFaceEXT = __indirect_glActiveStencilFaceEXT;
diff --git a/src/glx/x11/size.h b/src/glx/x11/size.h
index e04696af19a..795eeffb8fd 100644
--- a/src/glx/x11/size.h
+++ b/src/glx/x11/size.h
@@ -66,7 +66,7 @@ extern GLint __glTexImage2D_size(GLenum format, GLenum type, GLsizei w, GLsizei
extern GLint __glTexImage3D_size(GLenum format, GLenum type, GLsizei w, GLsizei h, GLsizei d);
extern GLint __glTexParameterfv_size(GLenum e);
extern GLint __glTexParameteriv_size(GLenum e);
-extern GLint __glPointParameterfvARB_size(GLenum e);
-extern GLint __glPointParameteriv_size(GLenum e);
+extern GLint __glPointParameterfvEXT_size(GLenum e);
+extern GLint __glPointParameterivNV_size(GLenum e);
#endif /* _size_h_ */