2 Copyright 2009-2015, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
8 #include "mesa3dgl_types.h"
9 #include "mesa3dgl_support.h"
11 /*****************************************************************************
21 Make the selected GL rendering context active.
24 ctx - GL rendering context to be made active for all following GL
35 *****************************************************************************/
37 struct mesa3dgl_context
*_ctx
= (struct mesa3dgl_context
*)ctx
;
41 struct st_context_iface
* cur_ctx
= glstapi
->get_current(glstapi
);
43 if (_ctx
->st
!= cur_ctx
)
45 /* Recalculate buffer dimensions */
46 MESA3DGLRecalculateBufferWidthHeight(_ctx
);
49 glstapi
->make_current(glstapi
, _ctx
->st
,
50 &_ctx
->framebuffer
->base
, &_ctx
->framebuffer
->base
);
56 glstapi
->make_current(glstapi
, NULL
, NULL
, NULL
);