egl: Use a boolean to indicate whether a display is initialized.

The driver pointer of the display was used to decide whether a display
is initialized.  Use a boolean for that purpose allows accessing the
driver of an uninitialized display.
This commit is contained in:
Chia-I Wu
2010-01-27 23:55:58 +08:00
parent 8f81769148
commit a933259daa
2 changed files with 20 additions and 16 deletions

View File

@@ -49,6 +49,7 @@ struct _egl_display
EGLNativeDisplayType NativeDisplay;
EGLBoolean Initialized; /**< True if the display is initialized */
_EGLDriver *Driver;
void *DriverData; /* private to driver */