mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
st/mesa: fix clip state dependencies
This allows removing FLUSH_VERTICES in MatrixMode.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 3c6156a4a7)
This commit is contained in:
parent
da1d57faf3
commit
5d41a78769
1 changed files with 4 additions and 1 deletions
|
|
@ -56,6 +56,9 @@ static void update_clip( struct st_context *st )
|
|||
use_eye = TRUE;
|
||||
}
|
||||
|
||||
/* _ClipUserPlane = _NEW_TRANSFORM | _NEW_PROJECTION
|
||||
* EyeUserPlane = _NEW_TRANSFORM
|
||||
*/
|
||||
memcpy(clip.ucp,
|
||||
use_eye ? ctx->Transform.EyeUserPlane
|
||||
: ctx->Transform._ClipUserPlane, sizeof(clip.ucp));
|
||||
|
|
@ -70,7 +73,7 @@ static void update_clip( struct st_context *st )
|
|||
const struct st_tracked_state st_update_clip = {
|
||||
"st_update_clip", /* name */
|
||||
{ /* dirty */
|
||||
_NEW_TRANSFORM, /* mesa */
|
||||
_NEW_TRANSFORM | _NEW_PROJECTION, /* mesa */
|
||||
ST_NEW_VERTEX_PROGRAM, /* st */
|
||||
},
|
||||
update_clip /* update */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue