if (renderer = NULL) {...
You are attributing NULL to the renderer here, I am sure you meant to use == .
I have done this several times.
Same with the quit test...
Didn't your compiler spit a warning about this?
ah, this solved my first error, no it didnt. which was odd. It compiles with no errors or warnings. except for the break, which is now happening here.
SDL_Renderer *CSDL_Setup::GetRenderer()
{
return renderer;
}
more specifically
return renderer;
EDIT:
interestingly enough if I have:
csdl_setup = new CSDL_Setup(&quit);
it breaks in the original place.
however:
csdl_setup == new CSDL_Setup(&quit);
"==" causes it to break in the return renderer; function.
any known reason to why == and = are different or did i just missing something from my books and studies?