浏览代码

drisw: Fix drawable creation against non-default screens

We don't want to match the visual against the default screen.  If the
drawable is on a non-default screen then the appropriate visual might not
exist on the default screen.  Conversely, if the same visual is
available on multiple screens then simply selecting for the right VID is
sufficient, since the server has promised that the same visual is
compatible with multiple screens.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
tags/mesa-8.0-rc1
Adam Jackson 13 年前
父节点
当前提交
2af17433b5
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      src/glx/drisw_glx.c

+ 1
- 2
src/glx/drisw_glx.c 查看文件

@@ -87,9 +87,8 @@ XCreateDrawable(struct drisw_drawable * pdp,
XChangeGC(dpy, pdp->swapgc, GCGraphicsExposures, &gcvalues);

/* visual */
visTemp.screen = DefaultScreen(dpy);
visTemp.visualid = visualid;
visMask = (VisualScreenMask | VisualIDMask);
visMask = VisualIDMask;
pdp->visinfo = XGetVisualInfo(dpy, visMask, &visTemp, &num_visuals);

/* create XImage */

正在加载...
取消
保存