Skip to content

Commit

Permalink
fix(CMP_ConvertTexture): Correct error code from CMP_ConvertTexture
Browse files Browse the repository at this point in the history
CMP_ERR_UNSUPPORTED_SOURCE_FORMAT was returned when the Destination Format had an unsupported codec. This should be DEST_FORMAT
  • Loading branch information
ProbablePrime committed Feb 4, 2025
1 parent 20b922c commit 5b09aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmp_compressonatorlib/compressonator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ CMP_ERROR CMP_API CMP_ConvertTexture(CMP_Texture* pSourceTexture,
CodecType destType = GetCodecType(pDestTexture->format);
assert(destType != CT_Unknown);
if (destType == CT_Unknown)
return CMP_ERR_UNSUPPORTED_SOURCE_FORMAT;
return CMP_ERR_UNSUPPORTED_DEST_FORMAT;

// Figure out the type of processing we are doing

Expand Down

0 comments on commit 5b09aa6

Please sign in to comment.