blob: 891a96e7376ed621f9a4bc51fe76438d7e45bd71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "context.h"
#include "util/u_memory.h"
void cl_destroy_context( struct pipe_context *context )
{
struct _cl_context *clcontext = cl_convert_context(context);
FREE(clcontext);
}
struct pipe_context *cl_create_context( struct pipe_winsys *winsys )
{
struct _cl_context *cl_context = CALLOC_STRUCT(_cl_context);
cl_context->pipe.winsys = winsys;
cl_context->pipe.destroy = cl_destroy_context;
return &cl_context->pipe;
}
|