Skip to content

Memory leak with uastc #465

@skaarj1989

Description

@skaarj1989

Lastest version (master)

Dumping objects ->
{55897} normal block at 0x0000010FFCBA4860, 24 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 
ktxTexture *tex;
ktxTexture_CreateFromMemory(
    buffer, length, KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT, &tex);

if (ktxTexture_NeedsTranscoding(tex)) {
  result = ktxTexture2_TranscodeBasis(reinterpret_cast<ktxTexture2 *>(tex),
                                      KTX_TTF_RGBA32, 0);
}

// ... loading to gpu

ktxTexture_Destroy(tex);

https://drive.google.com/file/d/1Op0nDvdIfW6tJP5XVuSuHnZ3JvNenrza/view?usp=sharing

Image converted with toktx
--uastc 4 --uastc_rdo_l .5 --uastc_rdo_d 65536 --zcmp 22

--bcmp is ok, no leaks

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