Commit b4c7a48d authored by Brian Paul's avatar Brian Paul
Browse files

gallium: fix an edgeflags crash

parent 2926e59e
......@@ -208,10 +208,14 @@ setup_edgeflags(GLcontext *ctx, GLenum primMode, GLint start, GLint count,
ctx->Polygon.BackMode != GL_FILL)) {
/* need edge flags */
GLuint i;
unsigned *vec = (unsigned *) calloc(sizeof(unsigned), (count + 31) / 32);
unsigned *vec;
struct st_buffer_object *stobj = st_buffer_object(array->BufferObj);
ubyte *map;
if (!stobj)
return NULL;
vec = (unsigned *) calloc(sizeof(unsigned), (count + 31) / 32);
if (!vec)
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment