Skip to content

"Texture failed to load or is invalid!" after loading Texture Succesfully #79

@Kaganox

Description

@Kaganox

I tried to load a texture but of some reason the texture is after loading null.

try {
     cellTexture = Raylib.LoadTextureFromImage(Raylib.LoadImage("src\\main\\resources\\cell.jpg"));
} catch (Exception ignored){
     ignored.printStackTrace();
}

INFO: FILEIO: [src\main\resources\task1\leaf.png] File loaded successfully

But by trying to draw image i get this message:
Texture failed to load or is invalid!

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