perey / pegl

A Python 3 wrapper for the EGL library.
GNU General Public License v3.0
14 stars 5 forks source link

Exception in Display destructor #7

Closed perey closed 2 years ago

perey commented 2 years ago

The following exception comes up during testing:

Exception ignored in: <function Display.__del__ at 0x...>
Traceback (most recent call last):
  File "C:\Users\Tim\Documents\Programming\pegl\src\pegl\display.py", line 99, in __del__
    if self._as_parameter_ is egl.EGL_NO_DISPLAY:
AttributeError: 'Display' object has no attribute '_as_parameter_'

As I recall, 846da10 was an attempt to fix this… or else it fixed some other destructor-triggered exception and left this one instead.

perey commented 2 years ago

This only happens with EGL versions 1.0 through 1.3 (that is, with test setups that use the PEGLEGLVERSION environment variable to only load those EGL versions).

perey commented 2 years ago

Well that was an easier fix than expected.