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().
This commit is contained in:
wm4 2012-11-01 01:05:17 +01:00
parent c59a80b77c
commit c6ce1d4b99
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ int glFmt2bpp(GLenum format, GLenum type)
case GL_LUMINANCE_ALPHA:
return 2 * component_size;
}
return 0; // unknown
abort(); // unknown
}
/**