static const array_func VertexFuncs[3][8] = {
{
- 0,
- 0,
+ NULL,
+ NULL,
(array_func) Vertex2sv,
- 0,
+ NULL,
(array_func) Vertex2iv,
- 0,
+ NULL,
(array_func) Vertex2fv,
(array_func) Vertex2dv,
},
{
- 0,
- 0,
+ NULL,
+ NULL,
(array_func) Vertex3sv,
- 0,
+ NULL,
(array_func) Vertex3iv,
- 0,
+ NULL,
(array_func) Vertex3fv,
(array_func) Vertex3dv,
},
{
- 0,
- 0,
+ NULL,
+ NULL,
(array_func) Vertex4sv,
- 0,
+ NULL,
(array_func) Vertex4iv,
- 0,
+ NULL,
(array_func) Vertex4fv,
(array_func) Vertex4dv,
},
}
static const array_func IndexFuncs[8] = {
- 0,
+ NULL,
(array_func) Indexubv,
(array_func) Indexsv,
- 0,
+ NULL,
(array_func) Indexiv,
- 0,
+ NULL,
(array_func) Indexfv,
(array_func) Indexdv,
};
static const array_func NormalFuncs[8] = {
(array_func) Normal3bv,
- 0,
+ NULL,
(array_func) Normal3sv,
- 0,
+ NULL,
(array_func) Normal3iv,
- 0,
+ NULL,
(array_func) Normal3fv,
(array_func) Normal3dv,
};
}
static const array_func FogCoordFuncs[8] = {
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
(array_func) FogCoordfvEXT,
(array_func) FogCoorddvEXT
};
{
if ( AE_CONTEXT( ctx ) ) {
FREE( ctx->aelt_context );
- ctx->aelt_context = 0;
+ ctx->aelt_context = NULL;
}
}
{
GET_CURRENT_CONTEXT(ctx);
struct gl_buffer_object *oldBufObj;
- struct gl_buffer_object *newBufObj = 0;
+ struct gl_buffer_object *newBufObj = NULL;
ASSERT_OUTSIDE_BEGIN_END(ctx);
oldBufObj = buffer_object_get_target( ctx, target, "BindBufferARB" );
}
{
- GLuint bitmask = _mesa_material_bitmask( ctx, face, pname, ~0, 0 );
+ GLuint bitmask = _mesa_material_bitmask( ctx, face, pname, ~0, NULL );
for (i = 0 ; i < MAT_ATTRIB_MAX ; i++)
if (bitmask & (1<<i)) {
ctx->ListState.ActiveMaterialSize[i] = args;
typedef int (*cfunc)(const void *, const void *);
-static enum_elt **index1 = 0;
-static int sorted = 0;
+static enum_elt **index1;
+static int sorted;
static int compar_name( const enum_elt *a, const enum_elt *b )
{
static const char *version_1_5 = "1.5 Mesa " MESA_VERSION_STRING;
static const char *version_2_0 = "1.5 Mesa " MESA_VERSION_STRING;/*XXX FIX*/
- ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);
+ ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, NULL);
/* this is a required driver function */
assert(ctx->Driver.GetString);
ASSERT(side < 2);
if (ctx->_ShineTable[side])
ctx->_ShineTable[side]->refcount--;
- ctx->_ShineTable[side] = 0;
+ ctx->_ShineTable[side] = NULL;
}
ctx->Light.ColorMaterialMode = GL_AMBIENT_AND_DIFFUSE;
ctx->Light.ColorMaterialBitmask = _mesa_material_bitmask( ctx,
GL_FRONT_AND_BACK,
- GL_AMBIENT_AND_DIFFUSE, ~0, 0 );
+ GL_AMBIENT_AND_DIFFUSE, ~0,
+ NULL );
ctx->Light.ColorMaterialEnabled = GL_FALSE;
addr = (GLubyte *) image + 16 * (((width + 3) / 4) * (row / 4) + col / 4);
break;
default:
- return 0;
+ return NULL;
}
return addr;
GLuint unit = ctx->Texture.CurrentUnit;
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
struct gl_texture_object *oldTexObj;
- struct gl_texture_object *newTexObj = 0;
+ struct gl_texture_object *newTexObj = NULL;
ASSERT_OUTSIDE_BEGIN_END(ctx);
if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE))