-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
backend: gl: inherit image's inner properties in the gl_image_decouple function #1179
backend: gl: inherit image's inner properties in the gl_image_decouple function #1179
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## next #1179 +/- ##
==========================================
- Coverage 36.43% 36.41% -0.02%
==========================================
Files 50 50
Lines 11533 11541 +8
==========================================
+ Hits 4202 4203 +1
- Misses 7331 7338 +7
|
@absolutelynothelix you are right about |
…e function Image decouple should keep all the image properies from the source image, so shader must be copied. And there are also some internal properties what should be inherited but wasn't. In particular this prevents images from losing their shaders when alpha is applied. Fixes yshui#1174
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
073acd4
to
c738400
Compare
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.
looks good, builds and works for me. i left some thoughts that you can freely ignore if you don't find them reasonable.
i can't approve my own pull request but consider it approved 😄
if anyone gets confused by this pull request in the future: initially it was only about inheriting an image's shader in the |
f0807dc
to
7b295b8
Compare
Present shader optionally does dithering, but that's not needed for decoupling. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
7b295b8
to
9204426
Compare
fixes #1174.
also i'm a bit worried that
has_alpha
,y_inverted
andauxiliary_texture
are not inherited but i'm not sure if it causes any issues now or could cause any issues in the future.backend: gl: inherit image's shader in the gl_image_decouple function
this prevents images from losing their shaders when alpha is applied