From 5faa2e533f670b5e563009086c7514986a3e012d Mon Sep 17 00:00:00 2001 From: ProbablePrime Date: Mon, 3 Feb 2025 23:24:32 -0800 Subject: [PATCH] fix(CMP_ConvertTexture): Correct error code from CMP_ConvertTexture CMP_ERR_UNSUPPORTED_SOURCE_FORMAT was returned when the Destination Format had an unsupported codec. This should be DEST_FORMAT --- cmp_compressonatorlib/compressonator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmp_compressonatorlib/compressonator.cpp b/cmp_compressonatorlib/compressonator.cpp index f9f068f19..0f7e92036 100644 --- a/cmp_compressonatorlib/compressonator.cpp +++ b/cmp_compressonatorlib/compressonator.cpp @@ -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