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

OpenGL Underlay in Skia Backend Leads to Font Bugs and Rendering Issues #5282

Closed
axojhf opened this issue May 21, 2024 · 5 comments
Closed

Comments

@axojhf
Copy link

axojhf commented May 21, 2024

I am programming in C++ on Windows 10 22H2.

I attempted to integrate a video player by referring to the 'opengl_underlay' project in the examples. I noticed that under the condition where SLINT_BACKEND is set to 'winit-skia-opengl', the font rendering appears as follows, while it becomes normal when switched to 'winit-femtovg'.

winit-skia-opengl:
winit-skia-opengl

winit-femtovg:
image

Additionally, I have observed that the images rendered under 'winit-skia-opengl' exhibit more jagged edges.
I apologize that English is not my native language; some expressions may not be precise enough.

@tronical
Copy link
Member

Are you using Windows inside a virtual box virtual machine by chance?

@axojhf
Copy link
Author

axojhf commented May 21, 2024

No, I am running it on my laptop with an Intel UHD 620 GPU.
When OpenGL Underlay is not used, the font rendering is normal.

@tronical
Copy link
Member

Ahh thanks. I missed that. If you see this issue then your OpenGL underlay isn’t restoring the OpenGL state exactly as it was when finished. For example, are to changing the current VAO?

@axojhf
Copy link
Author

axojhf commented May 22, 2024

Thank you, the text display has become normal after I modified the code in the following way:

glGetIntegerv(GL_TEXTURE_BINDING_2D,&texture);
render();
glBindTexture(GL_TEXTURE_2D,texture);

@tronical
Copy link
Member

👍👍

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

2 participants