2 Copyright 2011-2015, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
8 #include <proto/exec.h>
10 #include "hostgl_ctx_manager.h"
11 #include "hostgl_support.h"
14 /*****************************************************************************
24 Make the selected GL rendering context active.
27 ctx - GL rendering context to be made active for all following GL
38 *****************************************************************************/
42 D(bug("[HostGL] TASK: 0x%x, MAKE CURRENT 0x%x\n", FindTask(NULL
), ((struct hostgl_context
*)ctx
)->glXctx
));
46 GLAContext cur_ctx
= HostGL_GetCurrentContext();
50 /* Recalculate buffer dimensions */
51 HostGLRecalculateBufferWidthHeight(ctx
);
54 HostGL_SetCurrentContext(ctx
);
55 HostGL_UpdateGlobalGLXContext();
61 HostGL_SetCurrentContext(NULL
);
62 HostGL_UpdateGlobalGLXContext();