.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_set_current_opengl_context" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_set_current_opengl_context - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include void al_set_current_opengl_context(ALLEGRO_DISPLAY *display) \f[R] .fi .SH DESCRIPTION .PP Make the OpenGL context associated with the given display current for the calling thread. If there is a current target bitmap which belongs to a different OpenGL context, the target bitmap will be changed to NULL. .PP Normally you do not need to use this function, as the context will be made current when you call al_set_target_bitmap(3alleg5) or al_set_target_backbuffer(3alleg5). You might need it if you created an OpenGL \[lq]forward compatible\[rq] context. Then al_get_backbuffer(3alleg5) only returns NULL, so it would not work to pass that to al_set_target_bitmap(3alleg5).