#include "state_tracker/st_context.h"
#include "pipe/p_defines.h"
#include "pipe/p_screen.h"
-#include "pipe/p_winsys.h"
#include "pipe/p_context.h"
#include "xm_winsys.h"
XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
{
static GLboolean firstTime = GL_TRUE;
- struct pipe_winsys *winsys;
struct pipe_screen *screen;
struct pipe_context *pipe;
XMesaContext c;
/* XXX: create once per Xlib Display.
*/
- winsys = driver.create_pipe_winsys();
- if (winsys == NULL)
- goto fail;
-
- /* XXX: create once per Xlib Display.
- */
- screen = driver.create_pipe_screen( winsys );
+ screen = driver.create_pipe_screen();
if (screen == NULL)
goto fail;
if (screen)
screen->destroy( screen );
- if (winsys)
- winsys->destroy( winsys );
-
FREE(c);
return NULL;
}
struct pipe_context;
struct pipe_screen;
-struct pipe_winsys;
struct pipe_surface;
struct xmesa_buffer;
struct xm_driver {
- struct pipe_winsys *(*create_pipe_winsys)( void );
-
- struct pipe_screen *(*create_pipe_screen)( struct pipe_winsys * );
+ struct pipe_screen *(*create_pipe_screen)( void );
/* The context_private argument needs to go away. Is currently used
* in a round-about way to associate a display-target surface with its