mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
gallium: fix an edgeflags crash
This commit is contained in:
parent
2926e59e4a
commit
b4c7a48d5c
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue