summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglapi.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-05-11 22:16:52 +0200
committerMarek Olšák <[email protected]>2015-06-05 19:44:33 +0200
commitefda9c56491f5cb90e77f5fe7979477fc9b2b529 (patch)
tree3d53362bbfcc67e389e0c2f9eb2b0c4f0c9cfcf6 /src/egl/main/eglapi.c
parent3a83adeb7c6340104e9417beefc086f7d33183bc (diff)
egl: set the EGL version in common code
Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r--src/egl/main/eglapi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index fbb14f1524a..9a17f8d31f2 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -407,6 +407,12 @@ _eglCreateAPIsString(_EGLDisplay *dpy)
assert(strlen(dpy->ClientAPIsString) < sizeof(dpy->ClientAPIsString));
}
+static void
+_eglComputeVersion(_EGLDisplay *disp)
+{
+ disp->VersionMajor = 1;
+ disp->VersionMinor = 4;
+}
/**
* This is typically the second EGL function that an application calls.
@@ -444,6 +450,7 @@ eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
*/
disp->Extensions.KHR_get_all_proc_addresses = EGL_TRUE;
+ _eglComputeVersion(disp);
_eglCreateExtensionsString(disp);
_eglCreateAPIsString(disp);
_eglsnprintf(disp->VersionString, sizeof(disp->VersionString),