Skip to content

Commit

Permalink
Merge pull request #4 from Yellow-Dog-Man/fix/convert-errors
Browse files Browse the repository at this point in the history
fix(CMP_ConvertTexture): Correct error code from CMP_ConvertTexture
  • Loading branch information
ProbablePrime authored Feb 4, 2025
2 parents 20b922c + e3838a5 commit 15c5033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: cmake --build . --config $BUILD_TYPE

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CompressonatorCLI_64_Windows_Master_Build
path: ${{github.workspace}}/build/bin/bin/Release
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
# Will probably want to collect the files into a better structure before running this command
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CompressonatorFramework_Windows_Master_Build
path: CompressonatorFramework_result/
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 15c5033

Please sign in to comment.