OSDN Git Service

Fix crash with ETQW and Quake 4
authorLaurent Carlier <lordheavym@gmail.com>
Mon, 17 Dec 2012 08:59:52 +0000 (09:59 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 17 Dec 2012 08:59:52 +0000 (09:59 +0100)
s2tc_algorithm.cpp

index 7b7bccd..57bb293 100644 (file)
@@ -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;
        }
 }