SDL_CreateRGBSurface, cant have Rmask>0?

Whenever i set the Rmask value to anything above 0 i get thrown the error “Unknown Pixel Format” However, whenever i set the Rmask value to 0, the only thing that is ever created is a black object.


surf = SDL_CreateRGBSurface(0, 100, 100, 32, 255, 255, 255, 255); //Create RGB surface for texture

//surf = IMG_Load("Test_photo.png");

//Check if create surface failed
    cout << "surf: " << SDL_GetError() << endl;

I solved the problem. The masks are not representations of colors.