[PATCH xserver 4/6] glx: set the version we implement in GlxServerExports

Emil Velikov emil.l.velikov at gmail.com
Mon Feb 19 15:18:10 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

Set the major/minor version it's currently implemented, not the one
provided by the GLXSERVER_VENDOR_ABI_{MAJOR,MINOR}_VERSION macros.

Those are identical for now, but can change in the future.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
Hmm we seems to be missing any checks that enforce the compat. rules
described in glxvndabi.h

We'd want that before we have to bump the version, right?
---
 glx/vndext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/glx/vndext.c b/glx/vndext.c
index aeefd7519..c8d753234 100644
--- a/glx/vndext.c
+++ b/glx/vndext.c
@@ -277,8 +277,8 @@ GlxFreeServerImports(GlxServerImports *imports)
 }
 
 _X_EXPORT const GlxServerExports glxServer = {
-    .majorVersion = GLXSERVER_VENDOR_ABI_MAJOR_VERSION,
-    .minorVersion = GLXSERVER_VENDOR_ABI_MINOR_VERSION,
+    .majorVersion = 0,
+    .minorVersion = 0,
 
     .extensionInitCallback = &vndInitCallbackList,
 
-- 
2.16.0



More information about the xorg-devel mailing list