mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 08:50:28 +01:00
st/mesa: fix geometry corruption by always re-binding vertex arrays
This is a temporary workaround. It fixes sauerbrauten with shaders enabled. I guess we might be changing vertex attribs somewhere and not updating the appropriate dirty flags, therefore we can't rely on them for now. Or maybe we need to make this state dependent on some other flags too. More info: https://bugs.freedesktop.org/show_bug.cgi?id=34378
This commit is contained in:
parent
e0481cac7d
commit
bb46eeade3
1 changed files with 3 additions and 1 deletions
|
|
@ -613,8 +613,10 @@ st_draw_vbo(struct gl_context *ctx,
|
|||
struct pipe_index_buffer ibuffer;
|
||||
struct pipe_draw_info info;
|
||||
unsigned i;
|
||||
GLboolean new_array = GL_TRUE;
|
||||
/* Fix this (Bug 34378):
|
||||
GLboolean new_array =
|
||||
st->dirty.st && (st->dirty.mesa & (_NEW_ARRAY | _NEW_PROGRAM)) != 0;
|
||||
st->dirty.st && (st->dirty.mesa & (_NEW_ARRAY | _NEW_PROGRAM)) != 0;*/
|
||||
|
||||
/* Mesa core state should have been validated already */
|
||||
assert(ctx->NewState == 0x0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue