diff options
author | Ian Romanick <idr@us.ibm.com> | 2005-09-28 03:37:22 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2005-09-28 03:37:22 +0000 |
commit | 940158a6f2e98069a47293d713df674e16ad8a11 (patch) | |
tree | 2a30931edcadd9b53b108d1a7206a6bc21a9b083 /GL/glx/render2.c | |
parent | 806d74bc0640f4f3dcc034b36a36aea289b01685 (diff) |
Replace all uses of __glEvalComputeK (and the doubly redundant
EvalComputeK) with calls to one of __glMap[12][df]_size. This was
tested with progs/samples/eval (from Mesa).
Diffstat (limited to 'GL/glx/render2.c')
-rw-r--r-- | GL/glx/render2.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/GL/glx/render2.c b/GL/glx/render2.c index bc49d4fdd..39d0c132a 100644 --- a/GL/glx/render2.c +++ b/GL/glx/render2.c @@ -44,7 +44,6 @@ #include "g_disptab.h" #include "g_disptab_EXT.h" -extern GLint __glEvalComputeK(GLenum target); void __glXDisp_Map1f(GLbyte *pc) { @@ -57,7 +56,7 @@ void __glXDisp_Map1f(GLbyte *pc) u1 = *(GLfloat *)(pc + 4); u2 = *(GLfloat *)(pc + 8); points = (GLfloat *)(pc + 16); - k = __glEvalComputeK(target); + k = __glMap1f_size(target); glMap1f(target, u1, u2, k, order, points); } @@ -77,7 +76,7 @@ void __glXDisp_Map2f(GLbyte *pc) v2 = *(GLfloat *)(pc + 20); points = (GLfloat *)(pc + 28); - k = __glEvalComputeK(target); + k = __glMap2f_size(target); ustride = vorder * k; vstride = k; @@ -95,7 +94,7 @@ void __glXDisp_Map1d(GLbyte *pc) target = *(GLenum*) (pc + 16); order = *(GLint*) (pc + 20); - k = __glEvalComputeK(target); + k = __glMap1d_size(target); #ifdef __GLX_ALIGN64 if (order < 0 || k < 0) { @@ -138,7 +137,7 @@ void __glXDisp_Map2d(GLbyte *pc) target = *(GLenum *)(pc + 32); uorder = *(GLint *)(pc + 36); vorder = *(GLint *)(pc + 40); - k = __glEvalComputeK(target); + k = __glMap2d_size(target); #ifdef __GLX_ALIGN64 if (vorder < 0 || uorder < 0 || k < 0) { |