Skip to content

PixmapPacker.pack method may change Pixmap.Blending value #4552

@serpent7776

Description

@serpent7776

Issue details

Running multiple instances of PixmapPacker on background thread may change Pixmap.Blending value to Pixmap.Blending.None.
This is caused by PixmapPacker.pack method changing Pixmap.Blending which is global state: https://github.com/libgdx/libgdx/blob/1.9.5/gdx/src/com/badlogic/gdx/graphics/g2d/PixmapPacker.java#L174

Reproduction steps/code

Run multiple instances on PixmapPacker on background thread. Eventually Pixmap.Blending will be changed to Pixmap.Blending.None.

Version of LibGDX and/or relevant dependencies

1.9.x

Please select the affected platforms

Probably all of them, observed on android and iOS.

  • Android
  • iOS (robovm)
  • iOS (MOE)
  • HTML/GWT
  • Windows
  • Linux
  • MacOS

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