mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
mesa: fix !FEATURE_GL build
Move vbo_exec_FlushVertices_internal out of FEATURE_beginend. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Chad Versace <chad@chad-versace.us>
This commit is contained in:
parent
f7d2dcae3b
commit
a40008ac64
1 changed files with 18 additions and 18 deletions
|
|
@ -431,6 +431,24 @@ do { \
|
|||
#include "vbo_attrib_tmp.h"
|
||||
|
||||
|
||||
/**
|
||||
* Flush (draw) vertices.
|
||||
* \param unmap - leave VBO unmapped after flushing?
|
||||
*/
|
||||
static void
|
||||
vbo_exec_FlushVertices_internal(struct vbo_exec_context *exec, GLboolean unmap)
|
||||
{
|
||||
if (exec->vtx.vert_count || unmap) {
|
||||
vbo_exec_vtx_flush( exec, unmap );
|
||||
}
|
||||
|
||||
if (exec->vtx.vertex_size) {
|
||||
vbo_exec_copy_to_current( exec );
|
||||
reset_attrfv( exec );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if FEATURE_beginend
|
||||
|
||||
|
||||
|
|
@ -534,24 +552,6 @@ static void GLAPIENTRY vbo_exec_EvalPoint2( GLint i, GLint j )
|
|||
#endif /* FEATURE_evaluators */
|
||||
|
||||
|
||||
/**
|
||||
* Flush (draw) vertices.
|
||||
* \param unmap - leave VBO unmapped after flushing?
|
||||
*/
|
||||
static void
|
||||
vbo_exec_FlushVertices_internal(struct vbo_exec_context *exec, GLboolean unmap)
|
||||
{
|
||||
if (exec->vtx.vert_count || unmap) {
|
||||
vbo_exec_vtx_flush( exec, unmap );
|
||||
}
|
||||
|
||||
if (exec->vtx.vertex_size) {
|
||||
vbo_exec_copy_to_current( exec );
|
||||
reset_attrfv( exec );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called via glBegin.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue