gallium: move filter assignment out of loop
[mesa.git] / src / gallium / auxiliary / cso_cache / cso_context.c
index 01fe21644788957417770e68c9ed5ae96d12c855..4a1a6cb79c2aef9ab59f0e0b6090d1a7eaa93a5b 100644 (file)
@@ -496,7 +496,8 @@ void cso_restore_vertex_shader(struct cso_context *ctx)
 void cso_set_framebuffer(struct cso_context *ctx,
                          const struct pipe_framebuffer_state *fb)
 {
-   if (memcmp(&ctx->fb, fb, sizeof(*fb))) {
+   /* XXX this memcmp() fails to detect buffer size changes */
+   if (1/*memcmp(&ctx->fb, fb, sizeof(*fb))*/) {
       ctx->fb = *fb;
       ctx->pipe->set_framebuffer_state(ctx->pipe, fb);
    }