Mageia Bugzilla – Attachment 4569 Details for
Bug 8349
Same Video Driver That works on M2 does not work on M3-A3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to X segfaulting with Gtk+ applications
mach64-6.9.4-gtk-segfault.patch (text/plain), 696 bytes, created by
Nicolas Salguero
on 2013-12-02 23:23:39 CET
(
hide
)
Description:
Patch to X segfaulting with Gtk+ applications
Filename:
MIME Type:
Creator:
Nicolas Salguero
Created:
2013-12-02 23:23:39 CET
Size:
696 bytes
patch
obsolete
>diff -up xf86-video-mach64-6.9.4/src/atimach64render.c.jx xf86-video-mach64-6.9.4/src/atimach64render.c >--- xf86-video-mach64-6.9.4/src/atimach64render.c >+++ xf86-video-mach64-6.9.4/src/atimach64render.c >@@ -339,10 +339,13 @@ Mach64GetOrder(int val, int *shift) > static Bool > Mach64CheckTexture(PicturePtr pPict) > { >- int w = pPict->pDrawable->width; >- int h = pPict->pDrawable->height; >+ int h,w; > int l2w, l2h, level, i; > >+ if (pPict->pDrawable == NULL) >+ return FALSE; >+ w = pPict->pDrawable->width; >+ h = pPict->pDrawable->height; > for (i = 0; i < MACH64_NR_TEX_FORMATS; i++) { > if (Mach64TexFormats[i].pictFormat == pPict->format) > break; >
diff -up xf86-video-mach64-6.9.4/src/atimach64render.c.jx xf86-video-mach64-6.9.4/src/atimach64render.c --- xf86-video-mach64-6.9.4/src/atimach64render.c +++ xf86-video-mach64-6.9.4/src/atimach64render.c @@ -339,10 +339,13 @@ Mach64GetOrder(int val, int *shift) static Bool Mach64CheckTexture(PicturePtr pPict) { - int w = pPict->pDrawable->width; - int h = pPict->pDrawable->height; + int h,w; int l2w, l2h, level, i; + if (pPict->pDrawable == NULL) + return FALSE; + w = pPict->pDrawable->width; + h = pPict->pDrawable->height; for (i = 0; i < MACH64_NR_TEX_FORMATS; i++) { if (Mach64TexFormats[i].pictFormat == pPict->format) break;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8349
:
3269
| 4569