summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-17 16:14:39 -0600
committerBrian Paul <[email protected]>2009-04-17 16:14:39 -0600
commit69b17abd6bd969f90ed2a86b898dcb13efe13878 (patch)
treeb5cee42b5773a233cb04143075a78caa0f7d6af1
parenta975da7aca34883bc2a723306fbf95a3365a65d8 (diff)
intel: make sure polygon mode is set properly in intel_clear_tris()
Fixes progs/glsl/skinning.c demo. (cherry picked from master, commit 794d488e6dc795c225505b8c00a7f00f1960a5ad)
-rw-r--r--src/mesa/drivers/dri/intel/intel_clear.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_clear.c b/src/mesa/drivers/dri/intel/intel_clear.c
index c3ba50f3550..044e9d3f196 100644
--- a/src/mesa/drivers/dri/intel/intel_clear.c
+++ b/src/mesa/drivers/dri/intel/intel_clear.c
@@ -93,6 +93,7 @@ intel_clear_tris(GLcontext *ctx, GLbitfield mask)
GL_CURRENT_BIT |
GL_DEPTH_BUFFER_BIT |
GL_ENABLE_BIT |
+ GL_POLYGON_BIT |
GL_STENCIL_BUFFER_BIT |
GL_TRANSFORM_BIT |
GL_CURRENT_BIT);
@@ -114,6 +115,7 @@ intel_clear_tris(GLcontext *ctx, GLbitfield mask)
_mesa_Disable(GL_CLIP_PLANE3);
_mesa_Disable(GL_CLIP_PLANE4);
_mesa_Disable(GL_CLIP_PLANE5);
+ _mesa_PolygonMode(GL_FRONT_AND_BACK, GL_FILL);
if (ctx->Extensions.ARB_fragment_program && ctx->FragmentProgram.Enabled) {
saved_fp_enable = GL_TRUE;
_mesa_Disable(GL_FRAGMENT_PROGRAM_ARB);