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:
parent
3892835529
commit
bd5512489b
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue