>From d053f7d6da388540e375386819aa46a267381edc Mon Sep 17 00:00:00 2001
From: Pekka Paalanen <[EMAIL PROTECTED]>
Date: Mon, 10 Nov 2008 23:40:23 +0200
Subject: [PATCH] Mesa: fix cso_set_framebuffer()
I was hunting a memory usage bug, when I came across this
piece of code. It looks somehow wrong, and to get it in
line with the rest of the code, I propose this fix.
I have no idea what I'm doing, and this does not fix the
bug I'm hunting (bad pipe_surface data in glClear path
after resizing the window).
Please, let me know if this is correct or not.
Signed-off-by: Pekka Paalanen <[EMAIL PROTECTED]>
---
src/gallium/auxiliary/cso_cache/cso_context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c
b/src/gallium/auxiliary/cso_cache/cso_context.c
index b1ccfc0..a97e610 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -789,7 +789,7 @@ enum pipe_error cso_set_framebuffer(struct cso_context *ctx,
{
if (memcmp(&ctx->fb, fb, sizeof(*fb)) != 0) {
copy_framebuffer_state(&ctx->fb, fb);
- ctx->pipe->set_framebuffer_state(ctx->pipe, fb);
+ ctx->pipe->set_framebuffer_state(ctx->pipe, &ctx->fb);
}
return PIPE_OK;
}
--
1.5.6.4
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev