When building in the X-Server, attr.depth doesn't exist. Instead, use
(XMesaDrawable)w)->depth in the error message.
This commit is contained in:
parent
c1f2f9090b
commit
6e776f25fd
|
@ -1740,14 +1740,17 @@ XMesaBuffer XMesaCreateWindowBuffer2( XMesaVisual v, XMesaWindow w,
|
||||||
|
|
||||||
#ifdef XFree86Server
|
#ifdef XFree86Server
|
||||||
if (GET_VISUAL_DEPTH(v) != ((XMesaDrawable)w)->depth) {
|
if (GET_VISUAL_DEPTH(v) != ((XMesaDrawable)w)->depth) {
|
||||||
|
_mesa_warning(NULL, "XMesaCreateWindowBuffer: depth mismatch between visual and window! (%d != %d)\n", GET_VISUAL_DEPTH(v) , ((XMesaDrawable)w)->depth );
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
XGetWindowAttributes( v->display, w, &attr );
|
XGetWindowAttributes( v->display, w, &attr );
|
||||||
|
|
||||||
if (GET_VISUAL_DEPTH(v) != attr.depth) {
|
if (GET_VISUAL_DEPTH(v) != attr.depth) {
|
||||||
#endif
|
|
||||||
_mesa_warning(NULL, "XMesaCreateWindowBuffer: depth mismatch between visual and window! (%d != %d)\n", GET_VISUAL_DEPTH(v) , attr.depth );
|
_mesa_warning(NULL, "XMesaCreateWindowBuffer: depth mismatch between visual and window! (%d != %d)\n", GET_VISUAL_DEPTH(v) , attr.depth );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
b->xm_visual = v;
|
b->xm_visual = v;
|
||||||
b->type = WINDOW;
|
b->type = WINDOW;
|
||||||
|
|
Loading…
Reference in New Issue