Skip to content

Commit

Permalink
Match switch format to others in file.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCallow committed Dec 12, 2024
1 parent 890f581 commit ec32f1a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/astc_codec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,27 +588,27 @@ launchThreads(int threadCount, void (*func)(int, int, void*), void *payload) {
static ktx_error_code_e
mapAstcError(astcenc_error astc_error) {
switch (astc_error) {
case ASTCENC_SUCCESS:
case ASTCENC_SUCCESS:
return KTX_SUCCESS;
case ASTCENC_ERR_OUT_OF_MEM:
case ASTCENC_ERR_OUT_OF_MEM:
return KTX_OUT_OF_MEMORY;
case ASTCENC_ERR_BAD_BLOCK_SIZE: [[fallthrough]];
case ASTCENC_ERR_BAD_DECODE_MODE: [[fallthrough]];
case ASTCENC_ERR_BAD_FLAGS: [[fallthrough]];
case ASTCENC_ERR_BAD_PARAM: [[fallthrough]];
case ASTCENC_ERR_BAD_PROFILE: [[fallthrough]];
case ASTCENC_ERR_BAD_QUALITY: [[fallthrough]];
case ASTCENC_ERR_BAD_SWIZZLE:
case ASTCENC_ERR_BAD_BLOCK_SIZE: [[fallthrough]];
case ASTCENC_ERR_BAD_DECODE_MODE: [[fallthrough]];
case ASTCENC_ERR_BAD_FLAGS: [[fallthrough]];
case ASTCENC_ERR_BAD_PARAM: [[fallthrough]];
case ASTCENC_ERR_BAD_PROFILE: [[fallthrough]];
case ASTCENC_ERR_BAD_QUALITY: [[fallthrough]];
case ASTCENC_ERR_BAD_SWIZZLE:
assert(false && "libktx passing bad parameter to astcenc");
return KTX_INVALID_VALUE;
case ASTCENC_ERR_BAD_CONTEXT:
case ASTCENC_ERR_BAD_CONTEXT:
assert(false && "libktx has set up astcenc context incorrectly");
return KTX_INVALID_OPERATION;
case ASTCENC_ERR_BAD_CPU_FLOAT:
case ASTCENC_ERR_BAD_CPU_FLOAT:
assert(false && "Code compiled in way that float operations do not meet codec's assumptions.");
// Most likely compiled with fast match enabled.
return KTX_INVALID_OPERATION;
case ASTCENC_ERR_NOT_IMPLEMENTED:
case ASTCENC_ERR_NOT_IMPLEMENTED:
assert(false && "ASTCENC_BLOCK_MAX_TEXELS not enough for specified block size");
return KTX_UNSUPPORTED_FEATURE;
}
Expand Down

0 comments on commit ec32f1a

Please sign in to comment.