We're Y-inverted from GL's coordinates, so this is correct.  gnome-shell
doesn't seem to check this - somewhat reasonable since the only server
that answered the other way around was Xglx - but kwin does, and
upside-down hilarity ensues.

Tested-by: maelcum on #xorg-devel
Signed-off-by: Adam Jackson <[email protected]>
---
 glx/glxdricommon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c
index b027f24..f54bf2f 100644
--- a/glx/glxdricommon.c
+++ b/glx/glxdricommon.c
@@ -172,6 +172,7 @@ createModeFromConfig(const __DRIcoreExtension * core,
     config->config.xRenderable = GL_TRUE;
     config->config.visualType = visualType;
     config->config.drawableType = drawableType;
+    config->config.yInverted = GL_TRUE;
 
     return &config->config;
 }
-- 
1.8.3.1

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to