I dont know why when i start debugging its not opening the raylib window and C is red in teminal panel?
Based on the screenshot, it looks like your game is stopping on an exception (the Pause On Exception
near the bottom-left) but for some reason VS Code is not giving you the full details.
Thankfully, I can identify the potential cause based on the screenshot. And that would be you’re calling LoadTexture
before calling InitWindow
.
InitWindow
needs to be able to unlock the memory in the video card (aka graphics card) before you can load texture data (or other graphical data) into it. So you need to make sure that function is called before any calls to LoadTexture
.
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.