We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3333 - RGBA texture not rendered correctly on PSP
Summary: RGBA texture not rendered correctly on PSP
Status: RESOLVED ABANDONED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: 2.0.4
Hardware: Other Other
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 18:25 UTC by Littlefighter19
Modified: 2018-08-06 21:20 UTC (History)
1 user (show)

See Also:


Attachments
The result (382.55 KB, image/bmp)
2016-05-13 18:25 UTC, Littlefighter19
Details
Expected result (2.95 KB, image/png)
2016-05-13 18:26 UTC, Littlefighter19
Details
Possible solution (650 bytes, patch)
2017-06-28 08:18 UTC, Ben Kurtovic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Littlefighter19 2016-05-13 18:25:13 UTC
Created attachment 2453 [details]
The result

Rendering an RGBA texture onto the screen looks just fine on PC, however on the PSP the alpha texture is cut off.
Can also be reproduced with SDL_ttf
The attached file is a picture of text rendered with OpenSans and a diagonal gradient on the PSP (using SDL_image inside a png container).
Comment 1 Littlefighter19 2016-05-13 18:26:05 UTC
Created attachment 2454 [details]
Expected result
Comment 2 Littlefighter19 2016-05-13 18:29:48 UTC
I think it's mentionable to say that Alpha Blending works fine.
Comment 3 Ben Kurtovic 2017-06-28 08:18:27 UTC
Created attachment 2780 [details]
Possible solution

I think the problem might be because PSP_SetBlendMode is being passed the blendMode for renderer draw operations rather than the texture's blendMode. Attached patch would fix this, but I don't have the hardware to test if it works.
Comment 4 Sam Lantinga 2017-08-12 02:43:36 UTC
Does this patch fix the issue on PSP?  I don't have the hardware to test on either.
Comment 5 Ryan C. Gordon 2018-08-06 21:20:21 UTC
Hello, and sorry if you're getting dozens of copies of this message by email.

We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.

Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.

So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.

(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)

Thanks,
--ryan.