mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
implement Fake_glXCreateWindow() to fix bug #890894
This commit is contained in:
parent
54447772d5
commit
529614cd1a
1 changed files with 9 additions and 2 deletions
|
|
@ -1959,9 +1959,16 @@ static GLXWindow
|
|||
Fake_glXCreateWindow( Display *dpy, GLXFBConfig config, Window win,
|
||||
const int *attribList )
|
||||
{
|
||||
XMesaVisual xmvis = (XMesaVisual) config;
|
||||
XMesaBuffer xmbuf;
|
||||
if (!xmvis)
|
||||
return 0;
|
||||
|
||||
xmbuf = XMesaCreateWindowBuffer2(xmvis, win, NULL);
|
||||
if (!xmbuf)
|
||||
return 0;
|
||||
|
||||
(void) dpy;
|
||||
(void) config;
|
||||
(void) win;
|
||||
(void) attribList; /* Ignored in GLX 1.3 */
|
||||
|
||||
return win; /* A hack for now */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue