Remove an undocumented option
Removed --glx-reinit-on-root-change. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
22
src/opengl.c
22
src/opengl.c
@ -257,28 +257,6 @@ glx_destroy(session_t *ps) {
|
||||
ps->psglx = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reinitialize GLX.
|
||||
*/
|
||||
bool
|
||||
glx_reinit(session_t *ps, bool need_render) {
|
||||
// Reinitialize VSync as well
|
||||
vsync_deinit(ps);
|
||||
|
||||
glx_destroy(ps);
|
||||
if (!glx_init(ps, need_render)) {
|
||||
log_error("Failed to initialize GLX.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!vsync_init(ps)) {
|
||||
log_error("Failed to initialize VSync.");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback to run on root window size change.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user