summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldriver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/egldriver.h')
-rw-r--r--src/egl/main/egldriver.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h
index 6d2d7075cd3..51ec27c06ff 100644
--- a/src/egl/main/egldriver.h
+++ b/src/egl/main/egldriver.h
@@ -5,11 +5,23 @@
#include "egltypedefs.h"
#include "eglapi.h"
-/* should probably use a dynamic-lengh string, but this will do */
+/* should probably use a dynamic-length string, but this will do */
#define MAX_EXTENSIONS_LEN 1000
/**
+ * Optional EGL extensions info.
+ */
+struct _egl_extensions
+{
+ EGLBoolean MESA_screen_surface;
+ EGLBoolean MESA_copy_context;
+
+ char String[MAX_EXTENSIONS_LEN];
+};
+
+
+/**
* Base class for device drivers.
*/
struct _egl_driver
@@ -25,12 +37,7 @@ struct _egl_driver
_EGLAPI API;
- /* Extension enable flags */
- EGLBoolean MESA_screen_surface;
- EGLBoolean MESA_copy_context;
-
- /* Extensions string */
- char Extensions[MAX_EXTENSIONS_LEN];
+ _EGLExtensions Extensions;
};