summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-01-31 19:08:45 +0000
committerBrian Paul <[email protected]>2004-01-31 19:08:45 +0000
commit041e66b0d69b0b3288fbec8814fd1b941af9dbbe (patch)
tree908ce82b06814a2151773537ca628fb0f991cf1d /src/mesa
parentf5dbba7ec33cc5508c83d2994114716012e2a65a (diff)
don't call gl functions directly, jump through _glapi_Dispatch table
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_save_api.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c
index 9bf884e0478..b6d083d7a11 100644
--- a/src/mesa/tnl/t_save_api.c
+++ b/src/mesa/tnl/t_save_api.c
@@ -1280,11 +1280,11 @@ static void GLAPIENTRY _save_OBE_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfl
{
GET_CURRENT_CONTEXT(ctx);
_save_NotifyBegin( ctx, GL_QUADS | PRIM_WEAK );
- glVertex2f( x1, y1 );
- glVertex2f( x2, y1 );
- glVertex2f( x2, y2 );
- glVertex2f( x1, y2 );
- glEnd();
+ _glapi_Dispatch->Vertex2f( x1, y1 );
+ _glapi_Dispatch->Vertex2f( x2, y1 );
+ _glapi_Dispatch->Vertex2f( x2, y2 );
+ _glapi_Dispatch->Vertex2f( x1, y2 );
+ _glapi_Dispatch->End();
}
@@ -1298,8 +1298,8 @@ static void GLAPIENTRY _save_OBE_DrawArrays(GLenum mode, GLint start, GLsizei co
_save_NotifyBegin( ctx, mode | PRIM_WEAK );
for (i = start ; i < count ; i++)
- glArrayElement( i );
- glEnd();
+ _glapi_Dispatch->ArrayElement( i );
+ _glapi_Dispatch->End();
}
@@ -1317,22 +1317,22 @@ static void GLAPIENTRY _save_OBE_DrawElements(GLenum mode, GLsizei count, GLenum
switch (type) {
case GL_UNSIGNED_BYTE:
for (i = 0 ; i < count ; i++)
- glArrayElement( ((GLubyte *)indices)[i] );
+ _glapi_Dispatch->ArrayElement( ((GLubyte *)indices)[i] );
break;
case GL_UNSIGNED_SHORT:
for (i = 0 ; i < count ; i++)
- glArrayElement( ((GLushort *)indices)[i] );
+ _glapi_Dispatch->ArrayElement( ((GLushort *)indices)[i] );
break;
case GL_UNSIGNED_INT:
for (i = 0 ; i < count ; i++)
- glArrayElement( ((GLuint *)indices)[i] );
+ _glapi_Dispatch->ArrayElement( ((GLuint *)indices)[i] );
break;
default:
_mesa_error( ctx, GL_INVALID_ENUM, "glDrawElements(type)" );
break;
}
- glEnd();
+ _glapi_Dispatch->End();
}
static void GLAPIENTRY _save_OBE_DrawRangeElements(GLenum mode,