mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
* Source/x11/context.c: check for NULL from XRenderFindVisualFormat
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@34120 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c9c9397b6d
commit
696978c4ab
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-11-04 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/x11/context.c: check for NULL from XRenderFindVisualFormat
|
||||
|
||||
2011-10-25 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/gsc/GSStreamContext.m:
|
||||
|
|
|
@ -838,7 +838,8 @@ bestContext(Display *dpy, int screen_number, RContext *context)
|
|||
{
|
||||
XRenderPictFormat* pictFormat =
|
||||
XRenderFindVisualFormat (dpy, vinfo[i].visual);
|
||||
if ((pictFormat->type == PictTypeDirect)
|
||||
if (NULL != pictFormat
|
||||
&& (pictFormat->type == PictTypeDirect)
|
||||
&& (pictFormat->direct.alphaMask))
|
||||
{
|
||||
best = i;
|
||||
|
|
Loading…
Reference in a new issue