Mesa (master): r300g: Drop unnecessary cast

Marek Olšák mareko at kemper.freedesktop.org
Thu Dec 2 23:51:28 UTC 2010


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

Author: nobled <nobled at dreamwidth.org>
Date:   Thu Dec  2 21:48:40 2010 +0000

r300g: Drop unnecessary cast

---

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

diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 9589a49..3b46f99 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -328,7 +328,7 @@ static void r300_init_states(struct pipe_context *pipe)
     pipe->set_scissor_state(pipe, &ss);
 
     /* Initialize the clip state. */
-    if (r300_context(pipe)->screen->caps.has_tcl) {
+    if (r300->screen->caps.has_tcl) {
         pipe->set_clip_state(pipe, &cs);
     } else {
         BEGIN_CB(clip->cb, 2);




More information about the mesa-commit mailing list