Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Renderer.autocreate() return value check #196

Merged
merged 1 commit into from
May 12, 2024

Conversation

heuer
Copy link
Contributor

@heuer heuer commented May 11, 2024

autocreate() checked the return value of lib.wlr_renderer_autocreate() against a truth value not ffi.NULL.

  • Check explitely against ffi.NULL
  • Replaced exceptions from render_texture and render_texture_with_matrix with boolean values

Closes #195

autocreate() checked the return value of lib.wlr_renderer_autocreate()
against a truth value not ffi.NULL.

* Check explitely against ffi.NULL
* Replaced exceptions from render_texture and render_texture_with_matrix
  with boolean values
@heuer heuer mentioned this pull request May 11, 2024
@jwijenbergh
Copy link
Contributor

want me to cherry-pick this to the wlr 0.17 branch?

@heuer
Copy link
Contributor Author

heuer commented May 12, 2024

It was meant for 0.16.9 but it has to be added to 0.17 anyway. Feel free to integrate it now. There is also #190 which may affect 0.17 as well (haven't checked yet)

@flacjacket flacjacket merged commit 7a005d9 into flacjacket:main May 12, 2024
35 checks passed
@heuer heuer deleted the check_null branch May 13, 2024 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renderer: autocreate() checks for a truth value not for ffi.NULL
3 participants