Assert display list is not None instead of is not truthy.

bool(array[0]) is not truthy but is still a valid display list.
This commit is contained in:
David Vierra 2016-01-10 22:53:41 -10:00
parent 346c945324
commit 3ad11dc0c7

View File

@ -162,7 +162,7 @@ class DisplayList(object):
return self._list
def call(self):
assert self._list
assert self._list is not None
GL.glCallLists(self._list)