diff options
author | Xiang, Haihao <[email protected]> | 2007-12-27 10:43:43 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2007-12-27 10:43:43 +0800 |
commit | aac2d99dc316c069faa46dd43ff034155754c6b3 (patch) | |
tree | fc80a7584604e5a277f8d3c1c7a189ab146fae2c /src | |
parent | b422e5ad3716d32f2434ca38819f4a877c7eeeeb (diff) |
i915: reset swrast state after calling swrast DrawPixels.
In order to optimize DrawPixels, the i915 texenv program isn't
applied to swrast DrawPixels in the i915 driver. This causes this
program isn't applied to any following swrast functions. Resetting
the swrast state fixes this issue. Fix #13614
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_pixel_draw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_draw.c b/src/mesa/drivers/dri/intel/intel_pixel_draw.c index 566f884be0c..d7561e70387 100644 --- a/src/mesa/drivers/dri/intel/intel_pixel_draw.c +++ b/src/mesa/drivers/dri/intel/intel_pixel_draw.c @@ -378,6 +378,7 @@ intelDrawPixels(GLcontext * ctx, ctx->FragmentProgram._Current = fpSave; ctx->FragmentProgram._UseTexEnvProgram = GL_TRUE; ctx->FragmentProgram._Active = GL_TRUE; + _swrast_InvalidateState(ctx, _NEW_PROGRAM); } else { _swrast_DrawPixels( ctx, x, y, width, height, format, type, |