Skip to content

Allow ObserverLayer to be defined multiple times#34

Open
madsmtm wants to merge 2 commits intomasterfrom
fix-class-name
Open

Allow ObserverLayer to be defined multiple times#34
madsmtm wants to merge 2 commits intomasterfrom
fix-class-name

Conversation

@madsmtm
Copy link
Member

@madsmtm madsmtm commented Feb 26, 2026

If you use raw-window-metal multiple times across different dynamic libraries, and try to use these dynamic libraries together, we need to allow the observer layer class to be reused.

Fixes #29, see that and madsmtm/objc2#713 for discussion.

If you use `raw-window-metal` multiple times across different dynamic
libraries, and try to use these dynamic libraries together, we need to
allow the observer layer class to be reused.
@ilmai
Copy link

ilmai commented Feb 26, 2026

Good timing, I was just about to work on my plugin anyway. This fixed my issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

Static class name causes an error when loading into the same process from different dylibs

2 participants