-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Disable glow scissor test after painting #905
Conversation
egui_glow/src/painter.rs
Outdated
gl.viewport(0, 0, width_in_pixels as i32, height_in_pixels as i32); | ||
|
||
// gl.viewport(0, 0, width_in_pixels as i32, height_in_pixels as i32); | ||
// gl.viewport(0, 0, 300, 300); |
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.
Why is glViewport
commented out? Does it affect something adversely?
@@ -37,6 +37,8 @@ fn create_display( | |||
} | |||
|
|||
fn main() { | |||
let mut clear_color = [0.1, 0.1, 0.1]; |
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.
Is there any reason for changing this?
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!
Thanks for reviewing this @AlexApps99 |
Hello, this PR solved the issue better described in #904
basically if you don't disable the scissor test after drawing all the ui, the framebuffer goes bananas.