Mesa (mesa_7_7_branch): st/xorg: Reorder cases in switch statement.

Vinson Lee vlee at kemper.freedesktop.org
Sun Nov 22 05:57:53 UTC 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 46feb7db71b05ec67a7c78f6bc608adec0734dec
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46feb7db71b05ec67a7c78f6bc608adec0734dec

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Nov 22 00:55:52 2009 -0500

st/xorg: Reorder cases in switch statement.

Silences missing break statement warning.

---

 src/gallium/state_trackers/xorg/xorg_composite.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xorg_composite.c b/src/gallium/state_trackers/xorg/xorg_composite.c
index eed7a7d..4dbb490 100644
--- a/src/gallium/state_trackers/xorg/xorg_composite.c
+++ b/src/gallium/state_trackers/xorg/xorg_composite.c
@@ -151,9 +151,11 @@ render_filter_to_gallium(int xrender_filter, int *out_filter)
    case PictFilterBest:
       *out_filter = PIPE_TEX_FILTER_LINEAR;
       break;
+   case PictFilterConvolution:
+      *out_filter = PIPE_TEX_FILTER_NEAREST;
+      return FALSE;
    default:
       debug_printf("Unknown xrender filter\n");
-   case PictFilterConvolution:
       *out_filter = PIPE_TEX_FILTER_NEAREST;
       return FALSE;
    }




More information about the mesa-commit mailing list