mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
gallium: reorder code to fix a recursive flush
This commit is contained in:
parent
14d1ca8d86
commit
bb4f8ae1f9
1 changed files with 2 additions and 4 deletions
|
|
@ -537,11 +537,9 @@ pstip_flush(struct draw_stage *stage, unsigned flags)
|
|||
stage->tri = pstip_first_tri;
|
||||
stage->next->flush( stage->next, flags );
|
||||
|
||||
/* restore original frag shader */
|
||||
pstip->driver_bind_fs_state(pipe, pstip->fs->driver_fs);
|
||||
|
||||
/* restore original texture, sampler state */
|
||||
/* restore original frag shader, texture, sampler state */
|
||||
draw->suspend_flushing = TRUE;
|
||||
pstip->driver_bind_fs_state(pipe, pstip->fs->driver_fs);
|
||||
pstip->driver_bind_sampler_states(pipe, pstip->num_samplers,
|
||||
pstip->state.samplers);
|
||||
pstip->driver_set_sampler_textures(pipe, pstip->num_textures,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue