No textures are appearing in my window

When I attempt to draw the Scarfy texture to the window the compiler throws an error on the line i declare the variable, i have checked the file path, tried to remove the “.png” from the file path, but nothing is working. Please help.
I have added a screenshot to give you the exact error.

It’s not the path that’s the problem. The issue is that you’re trying to load a texture into video memory when there is none made available to you.

You want to call InitWindow as soon as possible, this (among other things) prepares the memory in your video card to accept data from your game.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms