mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
Fix warnings in mesh tests
* tests/conform/test-mesh-mutability.c (on_paint): * tests/conform/test-mesh-interleved.c (on_paint): * tests/conform/test-mesh-contiguous.c (on_paint): Use g_usleep instead of sleep * tests/conform/test-mesh-mutability.c (queue_redraw): * tests/conform/test-mesh-interleved.c (queue_redraw): * tests/conform/test-mesh-contiguous.c (queue_redraw): Added missing return statement * clutter/cogl/cogl-mesh.h: Add a declaration for cogl_mesh_submit * clutter/cogl/common/cogl-mesh.c (cogl_mesh_submit): Move the documentation to cogl-mesh.h to match the rest of the functions
This commit is contained in:
parent
1e68a8d59e
commit
46e4bd3a82
13
cogl-mesh.h
13
cogl-mesh.h
@ -262,6 +262,19 @@ cogl_mesh_draw_range_elements (CoglHandle handle,
|
||||
GLenum type,
|
||||
const GLvoid *indices);
|
||||
|
||||
/**
|
||||
* cogl_mesh_submit:
|
||||
* @handle: A Cogl mesh handle
|
||||
*
|
||||
* This function copies all the user added attributes into a buffer object
|
||||
* managed by the OpenGL driver.
|
||||
*
|
||||
* After the attributes have been submitted, then you may no longer add or
|
||||
* remove attributes from a mesh, though you can enable or disable them.
|
||||
*/
|
||||
void
|
||||
cogl_mesh_submit (CoglHandle handle);
|
||||
|
||||
/**
|
||||
* cogl_mesh_ref:
|
||||
* @handle: a @CoglHandle.
|
||||
|
@ -1094,16 +1094,6 @@ resolve_new_cogl_mesh_vbo (CoglMesh *mesh,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* cogl_mesh_submit:
|
||||
* @handle: A Cogl mesh handle
|
||||
*
|
||||
* This function copies all the user added attributes into a buffer object
|
||||
* managed by the OpenGL driver.
|
||||
*
|
||||
* After the attributes have been submitted, then you may no longer add or
|
||||
* remove attributes from a mesh, though you can enable or disable them.
|
||||
*/
|
||||
void
|
||||
cogl_mesh_submit (CoglHandle handle)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user