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

Disable glow scissor test after painting #905

Merged
merged 3 commits into from
Nov 27, 2021
Merged

Disable glow scissor test after painting #905

merged 3 commits into from
Nov 27, 2021

Conversation

Hperigo
Copy link
Contributor

@Hperigo Hperigo commented Nov 20, 2021

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.

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);
Copy link
Contributor

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];
Copy link
Contributor

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?

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@emilk emilk changed the title Glow scissor test Disable glow scissor test after painting Nov 27, 2021
@emilk emilk merged commit 6b5c4b9 into emilk:master Nov 27, 2021
@emilk
Copy link
Owner

emilk commented Nov 27, 2021

Thanks for reviewing this @AlexApps99

@Hperigo Hperigo deleted the glow-scissor-test branch November 28, 2021 14:54
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.

None yet

3 participants