justingardner / mgl

A suite of mex/m files for displaying psychophysics stimuli
http://justingardner.net/mgl
Other
18 stars 22 forks source link

Bug Hunt: Backwards Compatibility Issue #46

Closed cjoynes closed 2 years ago

cjoynes commented 2 years ago

mglCreateTexture requires dimX x dimY x 4 images and doesn't take 4 x dimX x dimY (so old code might not work in Metal)

justingardner commented 2 years ago

This is for uint8 textures only, I believe. I added a check in mglCreateTexture to convert and should be working now. We may need to revisit this because the intention was to have uint8 textures be in the device format for fast transfer and display.