Add missing CONFIG_OPENGL check

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-12-15 20:09:49 +00:00
parent e6871c9251
commit 85c5d34ce1
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 0 deletions

View File

@ -4534,6 +4534,7 @@ vsync_opengl_oml_init(session_t *ps) {
static bool
vsync_opengl_swc_swap_interval(session_t *ps, unsigned int interval) {
#ifdef CONFIG_OPENGL
if (!ensure_glx_context(ps))
return false;
@ -4556,6 +4557,7 @@ vsync_opengl_swc_swap_interval(session_t *ps, unsigned int interval) {
ps->psglx->glXSwapIntervalProc(interval);
else
return false;
#endif
return true;
}