mirror of
https://github.com/nothings/stb
synced 2024-12-16 04:42:42 +03:00
fix fall-through case warning, add credit
This commit is contained in:
parent
8cc624142b
commit
72ef9dcbad
@ -97,7 +97,8 @@ RECENT REVISION HISTORY:
|
|||||||
Michaelangel007@github Philipp Wiesemann Dale Weiler github:sammyhw
|
Michaelangel007@github Philipp Wiesemann Dale Weiler github:sammyhw
|
||||||
Oriol Ferrer Mesia Josh Tobin Matthew Gregan github:phprus
|
Oriol Ferrer Mesia Josh Tobin Matthew Gregan github:phprus
|
||||||
Blazej Dariusz Roszkowski Gregory Mullen github:poppolopoppo
|
Blazej Dariusz Roszkowski Gregory Mullen github:poppolopoppo
|
||||||
Christian Floisand Kevin Schmidt Baldur Karlsson darealshinji
|
Christian Floisand Kevin Schmidt Baldur Karlsson github:darealshinji
|
||||||
|
Aldo Culquicondor
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STBI_INCLUDE_STB_IMAGE_H
|
#ifndef STBI_INCLUDE_STB_IMAGE_H
|
||||||
@ -5268,7 +5269,7 @@ static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)
|
|||||||
switch(bits_per_pixel) {
|
switch(bits_per_pixel) {
|
||||||
case 8: return STBI_grey;
|
case 8: return STBI_grey;
|
||||||
case 16: if(is_grey) return STBI_grey_alpha;
|
case 16: if(is_grey) return STBI_grey_alpha;
|
||||||
// else: fall-through
|
// fall-through
|
||||||
case 15: if(is_rgb16) *is_rgb16 = 1;
|
case 15: if(is_rgb16) *is_rgb16 = 1;
|
||||||
return STBI_rgb;
|
return STBI_rgb;
|
||||||
case 24: // fall-through
|
case 24: // fall-through
|
||||||
|
Loading…
Reference in New Issue
Block a user