mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 16:48:07 +02:00
intel: Update mesa state in blit operations that want post-scissor draw bounds.
This commit is contained in:
parent
d091ebd4e4
commit
b9752a2bd6
2 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include "main/mtypes.h"
|
||||
#include "main/macros.h"
|
||||
#include "main/bufferobj.h"
|
||||
#include "main/state.h"
|
||||
#include "swrast/swrast.h"
|
||||
|
||||
#include "intel_screen.h"
|
||||
|
|
@ -172,6 +173,9 @@ do_blit_bitmap( GLcontext *ctx,
|
|||
drm_clip_rect_t *cliprects;
|
||||
int x_off, y_off;
|
||||
|
||||
/* Update draw buffer bounds */
|
||||
_mesa_update_state(ctx);
|
||||
|
||||
if (!dst)
|
||||
return GL_FALSE;
|
||||
|
||||
|
|
|
|||
|
|
@ -266,6 +266,9 @@ do_blit_copypixels(GLcontext * ctx,
|
|||
drm_clip_rect_t *cliprects;
|
||||
int x_off, y_off;
|
||||
|
||||
/* Update draw buffer bounds */
|
||||
_mesa_update_state(ctx);
|
||||
|
||||
/* Copypixels can be more than a straight copy. Ensure all the
|
||||
* extra operations are disabled:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue