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 4431 - Bug in NV12/NV21 shaders in OpenGLES2
Summary: Bug in NV12/NV21 shaders in OpenGLES2
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.0
Hardware: ARM Other
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL: https://discourse.libsdl.org/t/sdl2-b...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-20 02:05 UTC by Ryan C. Gordon
Modified: 2019-08-20 15:10 UTC (History)
1 user (show)

See Also:


Attachments
test-case (2.38 KB, text/x-csrc)
2019-08-20 15:09 UTC, Sylvain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan C. Gordon 2018-12-20 02:05:10 UTC
From https://discourse.libsdl.org/t/sdl2-bug-in-nv12-nv21-shaders-in-opengles2/25480


“it looks like the NV12/NV21 shaders are broken in OpenGLES2 renderer.”
Comment 1 Ryan C. Gordon 2018-12-20 02:08:04 UTC
I haven’t looked at this, but the GLES2 renderer sometimes does strange things with color channels to fake support for different texture formats...this fix might be valid, but it needs to be examined further first.

--ryan.
Comment 2 Sylvain 2019-08-20 15:09:57 UTC
Created attachment 3931 [details]
test-case

I've just tried with this test-case and it seems to be displayed correctly. 
Applying the patch would produce bad colors.

So I'm closing it ...
Comment 3 Sylvain 2019-08-20 15:10:23 UTC
marked as invalid