Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Null string conversion #17

Closed
veins1 opened this issue Jul 5, 2022 · 3 comments
Closed

Null string conversion #17

veins1 opened this issue Jul 5, 2022 · 3 comments

Comments

@veins1
Copy link

veins1 commented Jul 5, 2022

Wherever null string is accepted it is converted to a valid pointer to a '\0' instead of null.
This produces a warning when using LoadShader since '\0' is not a valid file path but at least it works since raylib checks if file was loaded correctly.
This completely breaks LoadShaderFromMemory however because it's trying to compile '\0' as a shader.

@jasonswearingen
Copy link
Member

Do you have some sample code I could test with? probably the string marshalling helper needs to be modified. But I'm not an expert on marshalling so having an explcit sample code to verify with would help.

@jasonswearingen
Copy link
Member

related to #20

@jasonswearingen
Copy link
Member

this has been fixed. 4.2 alpha1 should have the fix (later today). please track #20 for more details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants