projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a number of PBO validate/map/unmap functions
[mesa.git]
/
src
/
mesa
/
main
/
api_noop.c
diff --git
a/src/mesa/main/api_noop.c
b/src/mesa/main/api_noop.c
index 2bc1a133eccc285cf605f2c151a042494c1d8487..3df64362eab691ad658da83d0bba62e7ca42825e 100644
(file)
--- a/
src/mesa/main/api_noop.c
+++ b/
src/mesa/main/api_noop.c
@@
-31,7
+31,7
@@
#include "light.h"
#include "macros.h"
#include "dlist.h"
#include "light.h"
#include "macros.h"
#include "dlist.h"
-#include "dispatch.h"
+#include "
glapi/
dispatch.h"
/**
/**
@@
-45,25
+45,19
@@
static void GLAPIENTRY _mesa_noop_EdgeFlag( GLboolean b )
{
GET_CURRENT_CONTEXT(ctx);
static void GLAPIENTRY _mesa_noop_EdgeFlag( GLboolean b )
{
GET_CURRENT_CONTEXT(ctx);
- ctx->Current.EdgeFlag = b;
-}
-
-static void GLAPIENTRY _mesa_noop_EdgeFlagv( const GLboolean *b )
-{
- GET_CURRENT_CONTEXT(ctx);
- ctx->Current.EdgeFlag = *b;
+ ctx->Current.Attrib[VERT_ATTRIB_EDGEFLAG][0] = (GLfloat)b;
}
static void GLAPIENTRY _mesa_noop_Indexf( GLfloat f )
{
GET_CURRENT_CONTEXT(ctx);
}
static void GLAPIENTRY _mesa_noop_Indexf( GLfloat f )
{
GET_CURRENT_CONTEXT(ctx);
- ctx->Current.
Index
= f;
+ ctx->Current.
Attrib[VERT_ATTRIB_COLOR_INDEX][0]
= f;
}
static void GLAPIENTRY _mesa_noop_Indexfv( const GLfloat *v )
{
GET_CURRENT_CONTEXT(ctx);
}
static void GLAPIENTRY _mesa_noop_Indexfv( const GLfloat *v )
{
GET_CURRENT_CONTEXT(ctx);
- ctx->Current.
Index
= *v;
+ ctx->Current.
Attrib[VERT_ATTRIB_COLOR_INDEX][0]
= *v;
}
static void GLAPIENTRY _mesa_noop_FogCoordfEXT( GLfloat a )
}
static void GLAPIENTRY _mesa_noop_FogCoordfEXT( GLfloat a )
@@
-917,7
+911,6
@@
_mesa_noop_vtxfmt_init( GLvertexformat *vfmt )
vfmt->Color4f = _mesa_noop_Color4f;
vfmt->Color4fv = _mesa_noop_Color4fv;
vfmt->EdgeFlag = _mesa_noop_EdgeFlag;
vfmt->Color4f = _mesa_noop_Color4f;
vfmt->Color4fv = _mesa_noop_Color4fv;
vfmt->EdgeFlag = _mesa_noop_EdgeFlag;
- vfmt->EdgeFlagv = _mesa_noop_EdgeFlagv;
vfmt->End = _mesa_noop_End;
vfmt->EvalCoord1f = _mesa_noop_EvalCoord1f;
vfmt->EvalCoord1fv = _mesa_noop_EvalCoord1fv;
vfmt->End = _mesa_noop_End;
vfmt->EvalCoord1f = _mesa_noop_EvalCoord1f;
vfmt->EvalCoord1fv = _mesa_noop_EvalCoord1fv;