Skip to content

GBA/OpenGL: Sprites behind a Mode 4 background are hidden entirely #1907

Description

@lunasorcery

Any sprites with their priority set to draw behind a Mode 4 background will be hidden entirely - when populating the relevant background layer, the OpenGL renderer treats palette index 0 as a solid color rather than a transparent passthrough.
This might affect other background modes too; I'm not sure.

Observed on 7b3900f
Only occurs on the OpenGL Video Renderer. The Software Video Renderer is unaffected.

Activity

  1. endrift commented on Oct 11, 2020

    @endrift
    Member

    Do you have an example game this is used in? It's an easy fix but I want to make sure I do it properly.

  2. lunasorcery commented on Oct 11, 2020

    @lunasorcery
    Author

    Observed on Asterix & Obelix XXL:
    Screen Shot 2020-10-11 at 22 36 47

    Software renderer for comparison:
    Screen Shot 2020-10-11 at 22 36 36

    and Drome Racers:
    Screen Shot 2020-10-11 at 22 32 04

    Software renderer for comparison:
    Screen Shot 2020-10-11 at 22 32 23

  3. added a commit that references this issue on Oct 11, 2020
    d830e50
  4. added a commit that references this issue on Sep 9, 2026
    ad81ada
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions