Remove assertions in lock_surface functions

A surface may be safely locked without being neutral
They also prevent bug #18319 from being resolved
This commit is contained in:
Simon Forsyth 2011-12-17 22:58:20 +00:00
parent 3892835529
commit bd5512489b

View file

@ -30,7 +30,6 @@
surface_lock::surface_lock(surface &surf) : surface_(surf), locked_(false)
{
assert(is_neutral(surface_));
if (SDL_MUSTLOCK(surface_))
locked_ = SDL_LockSurface(surface_) == 0;
}
@ -43,7 +42,6 @@ surface_lock::~surface_lock()
const_surface_lock::const_surface_lock(const surface &surf) : surface_(surf), locked_(false)
{
assert(is_neutral(surface_));
if (SDL_MUSTLOCK(surface_))
locked_ = SDL_LockSurface(surface_) == 0;
}