Hello, I am pretty new to programming and very new to SDL so please be patient. (Unfortunately I cannot upload text, as I have recently joined)
I have an issue where my instance of an SDL_Renderer* variable appears to be inhibiting the creation of my window.
I have initialized SDL_INIT_VIDEO, and have assigned my SDL_Window* variable to the return value of SDL_CreateWindow(parameters), none of these have failed (the variable is not equal to NULL).
I have also initialized my SDL_Renderer* variable to the return value of SDL_CreateRenderer(parameters) and there is no failures there either.
I have created an event loop that continuously polls for either a button or mouse click.
I know it is an issue with the renderer (more likely my usage of it) because my code works (a window is created) if I initialize a SDL_Surface* variable before initializing (or just never initializing) my renderer variable, and the event loop works as intended.
I am hesitant to use a surface as I heard they are archaic and not really used in modern programs, but it seems like my program wont work otherwise.
If this info helps: I am making a cpp project on linux in a wayland WM, and I am able to compile and use the example files in the SDL3 github directory just fine (and they do not have a SDL_Surface*) but I am not using the callbacks like the examples ( I am using int main(int argc, char* argv) ).
I have looked through a lot of stack overflow questions and searched through the documentation but I have not been able to find an answer.