diff options
author | Richard Grenville <[email protected]> | 2014-07-29 09:29:26 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2014-07-29 09:29:26 +0800 |
commit | 66b420aa62d28af6f6e7b064f58db446829b4f6a (patch) | |
tree | bd92a7b7fdfc4b9a294c59ab1674c54def12a262 /opengl.c | |
parent | d8f0aba7b5e0896ae2cba51a728b33e515682563 (diff) | |
download | tdebase-66b420aa62d28af6f6e7b064f58db446829b4f6a.tar.gz tdebase-66b420aa62d28af6f6e7b064f58db446829b4f6a.zip |
Misc: Fix compilation with NO_VSYNC_OPENGL_GLSL / NO_C2
Fix compilation with NO_VSYNC_OPENGL_GLSL / NO_C2.
Diffstat (limited to 'opengl.c')
-rw-r--r-- | opengl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -104,12 +104,14 @@ glx_init(session_t *ps, bool need_render) { ps->psglx = cmalloc(1, glx_session_t); memcpy(ps->psglx, &CGLX_SESSION_DEF, sizeof(glx_session_t)); +#ifdef CONFIG_VSYNC_OPENGL_GLSL for (int i = 0; i < MAX_BLUR_PASS; ++i) { glx_blur_pass_t *ppass = &ps->psglx->blur_passes[i]; ppass->unifm_factor_center = -1; ppass->unifm_offset_x = -1; ppass->unifm_offset_y = -1; } +#endif } glx_session_t *psglx = ps->psglx; |