From 7cbc816f44087138c575d279cc5725a4dc18e08d Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Sun, 16 Dec 2012 18:10:18 +0100 Subject: [PATCH] Add missing break statement This fix segfault and textures with etqw and quake4. --- s2tc_algorithm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/s2tc_algorithm.cpp b/s2tc_algorithm.cpp index 7b7bccd..57bb293 100644 --- a/s2tc_algorithm.cpp +++ b/s2tc_algorithm.cpp @@ -1309,8 +1309,10 @@ void rgb565_image(unsigned char *out, const unsigned char *rgba, int w, int h, i { case 3: rgb565_image<3>(out, rgba, w, h, alphabits, dither); + break; case 4: default: rgb565_image<4>(out, rgba, w, h, alphabits, dither); + break; } } -- 1.8.0.2