-
Notifications
You must be signed in to change notification settings - Fork 35
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
Update egui to 0.26.2 and sdl2 to 0.36 #36
Conversation
Signed-off-by: David Cohen <[email protected]>
Signed-off-by: David Cohen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! You've done a bang up job of it and as a result I've just a minor comment for review.
src/painter.rs
Outdated
@@ -234,6 +47,30 @@ pub struct Painter { | |||
pub screen_rect: Rect, | |||
} | |||
|
|||
macro_rules! get_error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to name this macro as get_gl_error as that makes the intent even more clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing. That makes sense. I've pushed a new commit renaming the macro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to rebase my pull request as I found an issue on how the shader sources were being propagated to outside the crate. The rebasing also addresses your previous comment.
Signed-off-by: David Cohen <[email protected]>
Signed-off-by: David Cohen <[email protected]>
egui sends vertices and indices ready to be sent to the shader. Reworking them is unnecessary and wastes CPU cycles each frame. Signed-off-by: David Cohen <[email protected]>
Signed-off-by: David Cohen <[email protected]>
Signed-off-by: David Cohen <[email protected]>
This pull request updates egui dependency to 0.26.2 and sdl2 dependency to 0.36 and optimize misc parts of the code
Closes #37