Skip to content

CMP_CompressOptions->m_PrintInfoStr is marshaled incorrectly #18

Description

@ProbablePrime

On linux, CMP_ConvertMipTexture fails whenever it tries to access m_printInfostr.

This is marshaled from us here: https://github.com/Yellow-Dog-Man/Compressonator.NET/blob/main/Compressonator.NET/Structs/CMP_CompressOptions.cs#L134

It appears we marshal it incorrectly.

To fix this one:

  1. Adjust marshaling of m_printInfostr
  2. Compile a new version of Compressonator Native and Remove/revert: Yellow-Dog-Man/compressonator@a23d2e4 which IFDefs out m_printinfostr.
  3. Submit as a PR
  4. ALL tests must pass on all operating systems
  5. ideally add a new test showing successful functionality being handled with new marshaling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions