jonsth131 / ggtool

Tools for ggpack files used in Return to Monkey Island
MIT License
10 stars 0 forks source link

KTXBZ file got extracted but not the PNG (macOS) #3

Open legendofmi opened 2 years ago

legendofmi commented 2 years ago

Getting this error while extracting some files. The KTXBZ file gets extracted, but not the PNG.

Extracting Locksmith1-hd.ktxbz. Size = 11416, offset = 1088884480
Inflating...
Decompressing BPTC texture...
thread 'main' panicked at 'Contexts must be destroyed explicitly with `destroy_context`!', /Users/myusername/.cargo/registry/src/github.com-1ecc6299db9ec823/surfman-0.4.3/src/platform/macos/cgl/context.rs:95:13


Note: Build was compiled with "decompress_ktx"
legendofmi commented 2 years ago

With the latest build, I am now getting a PNG file for some KTXBZ. The files have the width and height defined but are empty. No error is shown on the console.

As an example Locksmith1-hd.ktxbz is 4.5MB and the Locksmith1-hd.ktxbz.png is 70KB. Image below: Locksmith1-hd ktxbz

r1sc commented 2 years ago

Try now with the latest build. I've replaced "surfman" for context creation with "glutin". Perhaps this will work better on macOS.

legendofmi commented 2 years ago

No change. I still get an empty PNG. Same size as before.

jonsth131 commented 2 years ago

Adding Help Wanted label, if anyone using a mac wants to help, feel free.

r1sc commented 1 year ago

There's a new branch "glfw" that uses GLFW and glow to build a context instead of the glutin library. Maybe you'll have more success with that!