Skip to content

background: Optimize texture uploading by only calling glTexImage2D once #44

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

Merged
merged 1 commit into from
May 9, 2025

Conversation

soreau
Copy link

@soreau soreau commented May 9, 2025

Before, we were uploading a texture twice: once when it's picked and once after it switches to fade out. This makes it so the old texture id is reused when fading to a new image, and avoids a call to glTexImage2D.

@soreau soreau marked this pull request as draft May 9, 2025 09:49
Before, we were uploading a texture twice: once when it's picked and once
after it switches to fade out. This makes it so the old texture id is
reused when fading to a new image, and avoids a call to glTexImage2D.
@soreau soreau force-pushed the wf-background-gl branch from c11ece3 to ea65bb6 Compare May 9, 2025 10:01
@soreau soreau marked this pull request as ready for review May 9, 2025 10:01
@trigg trigg merged commit 21a1d72 into trigg:gtk4 May 9, 2025
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.

2 participants