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

Summary: Bug in NV12/NV21 shaders in OpenGLES2
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sylvain.becker
Version: HG 2.0   
Hardware: ARM   
OS: Other   
URL: https://discourse.libsdl.org/t/sdl2-bug-in-nv12-nv21-shaders-in-opengles2/25480
Attachments: test-case

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