diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-03-20 09:15:24 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-03-20 09:15:24 -0600 |
commit | 8dd90ee19d97c4b032c2b057d96b3e674be3e1fd (patch) | |
tree | c87a993b791343c59d8d182b4c680703be70ac3e /src/gallium/auxiliary/cso_cache/cso_context.c | |
parent | 85e4ec6d118e340eaccd176aa622221642a2e754 (diff) |
gallium: temporarily disable the memcmp() in cso_set_framebuffer()
The memcmp() fails to detect buffer size changes...
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_context.c')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 01fe216447..4a1a6cb79c 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -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); } |