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

Why is black area covering gui appearing after resizing window? #49

Closed
tomaszte opened this issue Jun 13, 2021 · 1 comment
Closed

Why is black area covering gui appearing after resizing window? #49

tomaszte opened this issue Jun 13, 2021 · 1 comment

Comments

@tomaszte
Copy link
Sponsor

tomaszte commented Jun 13, 2021

Hello, I have changed the demo code so it allows window resizing, but when I'm resizing window part of the window contents is being covered by black rectangle.

Screenshots below show the problem:
first one is how it looks after program started
second and third are after resizing window to make it bigger.

Can you please help me understand why is that black rectangle appearing?

This is how I implemented resizing: https://github.com/tomaszte/microui/commit/d975c07eb59521ce692029387454a478969b7507

Image 1
Image 1
Image 1

@tomaszte
Copy link
Sponsor Author

It was caused by glEnable(GL_SCISSOR_TEST) being enabled all the time. It looks like it has to be disabled for resizing and then reenabled for drawing gui.

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

No branches or pull requests

1 participant