summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-11-21 13:22:34 +0000
committerKeith Whitwell <[email protected]>2006-11-21 13:22:34 +0000
commitb1c102d37bb3c273a2623358cb8ebff00bdfb65e (patch)
tree11b64e0e28273a52e4afc8a700cb4d1eeb39d4b7 /src/mesa
parent33d2835182f5f8a1f283811cbd13afe79cf6ea21 (diff)
More fixes, glean seems to run now.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/api_arrayelt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c
index f0164a80f6a..b3c33f2a79f 100644
--- a/src/mesa/main/api_arrayelt.c
+++ b/src/mesa/main/api_arrayelt.c
@@ -1051,7 +1051,7 @@ GLboolean _ae_create_context( GLcontext *ctx )
FogCoordFuncs[6] = _gloffset_FogCoordfvEXT;
FogCoordFuncs[7] = _gloffset_FogCoorddvEXT;
- ctx->aelt_context = MALLOC( sizeof(AEcontext) );
+ ctx->aelt_context = CALLOC( sizeof(AEcontext) );
if (!ctx->aelt_context)
return GL_FALSE;
@@ -1220,7 +1220,8 @@ void _ae_map_vbos( GLcontext *ctx )
GL_DYNAMIC_DRAW_ARB,
actx->vbo[i]);
- actx->mapped_vbos = GL_TRUE;
+ if (actx->nr_vbos)
+ actx->mapped_vbos = GL_TRUE;
}
void _ae_unmap_vbos( GLcontext *ctx )