Mesa (master): r300g: more reasonable MSPOS defaults in error path

Marek Olšák mareko at kemper.freedesktop.org
Wed Jun 16 20:15:34 PDT 2010


Module: Mesa
Branch: master
Commit: c3c20233233c2c578d39d2a707799b7cf0ad6e0f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3c20233233c2c578d39d2a707799b7cf0ad6e0f

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Jun 17 05:14:24 2010 +0200

r300g: more reasonable MSPOS defaults in error path

---

 src/gallium/drivers/r300/r300_emit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 4639bbb..50372d2 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -512,8 +512,8 @@ void r300_emit_rs_state(struct r300_context* r300, unsigned size, void* state)
                     break;
                 default:
                     debug_printf("r300: Bad number of multisamples!\n");
-                    mspos0 = 0;
-                    mspos1 = 0;
+                    mspos0 = rs->multisample_position_0;
+                    mspos1 = rs->multisample_position_1;
                     break;
             }
 



More information about the mesa-commit mailing list