Iam developing a game using SDL2, but when I run it, the window opens with a black screen instead of rendering my textures. The event loop works, and the application does not crash, but nothing is drawn on the screen.
I have tried:
Checking if SDL_RenderClear()
and SDL_RenderPresent()
are being called properly.
Ensuring my textures are loaded correctly and not NULL.
Running on both OpenGL and software rendering backends.
Has anyone faced this issue before? Could this be related to double buffering, texture format issues, or missing SDL initialization steps? Any help would be appreciated!