aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/x11/render2.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2004-12-01 09:11:04 +0000
committerIan Romanick <[email protected]>2004-12-01 09:11:04 +0000
commit9bba1cfc39d35b847c479dcc1afef3d5d8fb0bfc (patch)
treeca7db6c3be5021627f3516de37906300ba65153d /src/glx/x11/render2.c
parentb53df18624a1b3870c1dcfe3981c07c089efe262 (diff)
Use indirect_size.c and indirect_size.h generated by using
src/mesa/glapi/glX_proto_send.py with the '-m size_c' and '-m size_h' options.
Diffstat (limited to 'src/glx/x11/render2.c')
-rw-r--r--src/glx/x11/render2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/glx/x11/render2.c b/src/glx/x11/render2.c
index 816a7adc0e2..9245d2f79e8 100644
--- a/src/glx/x11/render2.c
+++ b/src/glx/x11/render2.c
@@ -49,7 +49,7 @@ void __indirect_glCallLists(GLsizei n, GLenum type, const GLvoid *lists)
__GLX_DECLARE_VARIABLES();
__GLX_LOAD_VARIABLES();
- compsize = __glCallLists_size(n,type);
+ compsize = (n <= 0) ? 0 : __glCallLists_size(type) * n;
cmdlen = __GLX_PAD(12 + compsize);
if (!gc->currentDpy) return;
@@ -76,7 +76,7 @@ void __indirect_glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride,
GLint k;
__GLX_LOAD_VARIABLES();
- k = __glEvalComputeK(target);
+ k = __glMap1d_size(target);
if (k == 0) {
__glXSetError(gc, GL_INVALID_ENUM);
return;
@@ -138,7 +138,7 @@ void __indirect_glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride,
GLint k;
__GLX_LOAD_VARIABLES();
- k = __glEvalComputeK(target);
+ k = __glMap1f_size(target);
if (k == 0) {
__glXSetError(gc, GL_INVALID_ENUM);
return;
@@ -197,7 +197,7 @@ void __indirect_glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustr, GLi
GLint k;
__GLX_LOAD_VARIABLES();
- k = __glEvalComputeK(target);
+ k = __glMap2d_size(target);
if (k == 0) {
__glXSetError(gc, GL_INVALID_ENUM);
return;
@@ -270,7 +270,7 @@ void __indirect_glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustr, GLint
GLint k;
__GLX_LOAD_VARIABLES();
- k = __glEvalComputeK(target);
+ k = __glMap2f_size(target);
if (k == 0) {
__glXSetError(gc, GL_INVALID_ENUM);
return;