Skip to content

[textures] LoadTextureFromImage() Texture could not be created in Multithread #448

@dginu85

Description

@dginu85

Hi nice people,
I do not understand why it does not create the texture:
look at the code, where am I wrong?

void GetImageFromCache(char * path, std::function<void(Image)>CallBack) {
CallBack(LoadImage(path));
}
std::thread t(GetImageFromCache,PATH,[this](Image img) {
TEXTURE_NORMAL = LoadTextureFromImage(img);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions