You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah alrighty. This is due to one of my commits where I changed the layout of the mlx_texture_t struct to keep the pixel buffer at the bottom. I forgot that it was on purpose that it wasn't as I was using it to perfectly map it to a GLFWImage.
Will fix this tomorrow and push the fix 👍
A quick fix is to simply swap the positions of the variables:
typedefstructmlx_texture
{
uint32_twidth;
uint32_theight;
// In the end the struct should look like thisuint8_t*pixels;
uint8_tbytes_per_pixel;
} mlx_texture_t;
Describe the bug
When i try to change the cursor in this small project, it segfaults when trying to do mlx_create_cursor
To Reproduce
Screenshots
![Screen Shot 2023-01-20 at 1 36 46 PM](https://user-images.githubusercontent.com/104783397/213779471-31931ebd-1552-49a4-9778-5888bc127394.png)
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
the png i use.
The text was updated successfully, but these errors were encountered: