mirror of
https://github.com/brl/mutter.git
synced 2025-01-25 19:08:56 +00:00
Remove a compiler warning
This commit is contained in:
parent
6ec9c3247c
commit
a432d9973d
@ -764,7 +764,7 @@ _cogl_draw_indexed_vertex_attributes_array_real (CoglVerticesMode mode,
|
|||||||
void *base;
|
void *base;
|
||||||
size_t array_offset;
|
size_t array_offset;
|
||||||
size_t index_size;
|
size_t index_size;
|
||||||
GLenum indices_gl_type;
|
GLenum indices_gl_type = 0;
|
||||||
|
|
||||||
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
|
||||||
|
|
||||||
@ -785,6 +785,7 @@ _cogl_draw_indexed_vertex_attributes_array_real (CoglVerticesMode mode,
|
|||||||
indices_gl_type = GL_UNSIGNED_INT;
|
indices_gl_type = GL_UNSIGNED_INT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
GE (glDrawElements ((GLenum)mode,
|
GE (glDrawElements ((GLenum)mode,
|
||||||
n_vertices,
|
n_vertices,
|
||||||
indices_gl_type,
|
indices_gl_type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user