Fix compositing mixing with framebuffer for web and ANGLE #3224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a
#if defined(GRAPHICS_API_OPENGL_ES2)
to clear the alpha channel on the end of the frame at the end ofrlDrawRenderBatch()
(R2894-R2900). It does that by:clearColor
alpha to1
;colorMask
to only consider the alpha from thatclearColor
;colorMask
to consider all values.Removes
background-color: black;
fromminshell.html
(L35) andbackground: black;
fromshell.html
(L78), since with the previous changes they are no longer needed. Those can still be set, butClearBackground()
will take precedence in defining the background color.Tested these changes successfully on Firefox (102.11.0esr 64-bit) and Chrome (115.0.5790.110) on Linux (Linux Mint 21.1 x86_64).
@ypujante Could you please test/confirm if these changes fix the issue on ANGLE?
@raysan5 I tried my best to place that where I think is the end of the frame. If these proposed changes are accepted, could you please check if that's the ideal/correct place for them?
Fixes #3179.
Edit: added line marks.