Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 422510 Details for
Bug 571132
x11-drivers/nvidia-drivers-361.16 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
QtGui patch to fix sddm krunner and etc... from crashing with nvidia 361.16 drivers
glxgetdisplay_passnull.patch (text/plain), 2.31 KB, created by
ewomer
on 2016-01-10 19:21:18 UTC
(
hide
)
Description:
QtGui patch to fix sddm krunner and etc... from crashing with nvidia 361.16 drivers
Filename:
MIME Type:
Creator:
ewomer
Created:
2016-01-10 19:21:18 UTC
Size:
2.31 KB
patch
obsolete
>From 681f22708315329a8479b107719ca32f0bc24570 Mon Sep 17 00:00:00 2001 >From: =?utf8?q?D=C4=81vis=20Mos=C4=81ns?= <davispuh@gmail.com> >Date: Fri, 8 Jan 2016 04:12:13 +0200 >Subject: [PATCH 1/1] Don't pass NULL Display to glXGetClientString > >glXGetCurrentDisplay can return NULL so need to check >for that. > >Change-Id: I1b85a5c575d1deb24dcce4719b6f737283adeabe >--- > .../platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp | 5 ++++- > .../platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp | 5 ++++- > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp >index 4cb220a..892da6a 100644 >--- a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp >+++ b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp >@@ -652,7 +652,10 @@ void QGLXContext::queryDummyContext() > oldSurface = oldContext->surface(); > > QScopedPointer<QSurface> surface; >- const char *glxvendor = glXGetClientString(glXGetCurrentDisplay(), GLX_VENDOR); >+ Display *display = glXGetCurrentDisplay(); >+ const char *glxvendor = 0; >+ if (display) >+ glxvendor = glXGetClientString(display, GLX_VENDOR); > if (glxvendor && !strcmp(glxvendor, "ATI")) { > QWindow *window = new QWindow; > window->resize(64, 64); >diff --git a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp >index ce72cb6..cd4949af 100644 >--- a/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp >+++ b/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qxcbglxintegration.cpp >@@ -195,7 +195,10 @@ QPlatformOffscreenSurface *QXcbGlxIntegration::createPlatformOffscreenSurface(QO > static bool glxPbufferUsable = true; > if (!vendorChecked) { > vendorChecked = true; >- const char *glxvendor = glXGetClientString(glXGetCurrentDisplay(), GLX_VENDOR); >+ Display *display = glXGetCurrentDisplay(); >+ const char *glxvendor = 0; >+ if (display) >+ glxvendor = glXGetClientString(display, GLX_VENDOR); > if (glxvendor && !strcmp(glxvendor, "ATI")) > glxPbufferUsable = false; > } >-- >2.6.2.2.g1b5ffa3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 571132
:
422342
|
422506
|
422508
|
422510