mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 21:00:40 +01:00
swrast: Move up state validation in _swrast_ReadPixels.
This ensures the driver won't map the wrong set of textures.
This commit is contained in:
parent
4a6759b778
commit
f741c1eed4
1 changed files with 3 additions and 3 deletions
|
|
@ -555,15 +555,15 @@ _swrast_ReadPixels( GLcontext *ctx,
|
|||
SWcontext *swrast = SWRAST_CONTEXT(ctx);
|
||||
struct gl_pixelstore_attrib clippedPacking = *packing;
|
||||
|
||||
if (ctx->NewState)
|
||||
_mesa_update_state(ctx);
|
||||
|
||||
/* Need to do swrast_render_start() before clipping or anything else
|
||||
* since this is where a driver may grab the hw lock and get an updated
|
||||
* window size.
|
||||
*/
|
||||
swrast_render_start(ctx);
|
||||
|
||||
if (ctx->NewState)
|
||||
_mesa_update_state(ctx);
|
||||
|
||||
if (swrast->NewState)
|
||||
_swrast_validate_derived( ctx );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue