From c6ce1d4b99cd9705378374535c97696cc678dee4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 Nov 2012 01:05:17 +0100 Subject: gl_common: make glFmt2bpp() abort on unknown formats None of its callers actually checked the return value, and it's a given that they call it only if it can't fail. Replace the non-sense return value (0) by a call to abort(). --- libvo/gl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvo') diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 44188481b9..31d9e526e9 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -862,7 +862,7 @@ int glFmt2bpp(GLenum format, GLenum type) case GL_LUMINANCE_ALPHA: return 2 * component_size; } - return 0; // unknown + abort(); // unknown } /** -- cgit v1.2.3