mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
fix bug 9962 (vbo splitting) as in trunk
This commit is contained in:
parent
2f57e0f71d
commit
a05e403bf2
1 changed files with 8 additions and 1 deletions
|
|
@ -129,6 +129,13 @@ static GLuint attr_size( const struct gl_client_array *array )
|
|||
*/
|
||||
static GLboolean check_flush( struct copy_context *copy )
|
||||
{
|
||||
GLenum mode = copy->dstprim[copy->dstprim_nr].mode;
|
||||
|
||||
if (GL_TRIANGLE_STRIP == mode &&
|
||||
copy->dstelt_nr & 1) { /* see bug9962 */
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
if (copy->dstbuf_nr + 4 > copy->dstbuf_size)
|
||||
return GL_TRUE;
|
||||
|
||||
|
|
@ -458,7 +465,7 @@ static void replay_init( struct copy_context *copy )
|
|||
dst->StrideB = copy->vertex_size;
|
||||
dst->Ptr = copy->dstbuf + offset;
|
||||
dst->Enabled = GL_TRUE;
|
||||
dst->Normalized = GL_TRUE;
|
||||
dst->Normalized = src->Normalized;
|
||||
dst->BufferObj = ctx->Array.NullBufferObj;
|
||||
dst->_MaxElement = copy->dstbuf_size; /* may be less! */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue