mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 09:18:09 +00:00
render/opengl/linux/glx: force GL_DRAW_BUFFER=GL_BACK after make-current
This commit is contained in:
committed by
Ryan Fleury
parent
c05846aef1
commit
7f3318309b
@@ -106,6 +106,9 @@ r_ogl_os_select_window(WM_Window os, R_Handle r)
|
|||||||
{
|
{
|
||||||
LNX_WM_Window *w = (LNX_WM_Window *)os.u64[0];
|
LNX_WM_Window *w = (LNX_WM_Window *)os.u64[0];
|
||||||
glXMakeCurrent(lnx_wm_state->display, w->window, r_ogl_lnx_ctx);
|
glXMakeCurrent(lnx_wm_state->display, w->window, r_ogl_lnx_ctx);
|
||||||
|
// ensure default framebuffer writes target the back buffer; on some drivers
|
||||||
|
// GL_DRAW_BUFFER stays GL_NONE if a context was first made current without a drawable.
|
||||||
|
glDrawBuffer(GL_BACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
|
|||||||
Reference in New Issue
Block a user