intel: make sure polygon mode is set properly in intel_clear_tris()
authorBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 22:11:05 +0000 (16:11 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 22:11:05 +0000 (16:11 -0600)
Fixes progs/glsl/skinning.c demo.

src/mesa/drivers/dri/intel/intel_clear.c

index 28281b38615d008ac08864bbc083497f719a9aeb..8c431cf1899a0e9af32ef639770a6ceaa7fd88da 100644 (file)
@@ -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);