mesa: remove gl_texture_format
[mesa.git] / src / mesa / main / clear.c
index a6257f9b982da24d97a7ae8a6993e69cefe30fae..63388f42ee46bdb19c6e0f8b9657b342df0694b6 100644 (file)
@@ -114,6 +114,8 @@ _mesa_Clear( GLbitfield mask )
    GET_CURRENT_CONTEXT(ctx);
    ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
 
+   FLUSH_CURRENT(ctx, 0);
+
    if (MESA_VERBOSE & VERBOSE_API)
       _mesa_debug(ctx, "glClear 0x%x\n", mask);