more debug messages when failing to create a surface.
multiple persons reported assertion failures due to surfaces being null.
This commit is contained in:
parent
55bebf6969
commit
6cdf6525e7
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ surface::surface(int w, int h)
|
|||
neutral_pixel_format.Bmask,
|
||||
neutral_pixel_format.Amask);
|
||||
#endif
|
||||
if(!surface_) {
|
||||
std::cerr << "Failed ot create a surface of size, " << w << "x" << h << " Reason: " << SDL_GetError() << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
bool surface::is_neutral() const
|
||||
|
|
Loading…
Add table
Reference in a new issue