diff --git a/src/opengl.c b/src/opengl.c index 28052f4..df24be3 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -563,12 +563,16 @@ glx_init_blur(session_t *ps) { "texture2DRect": "texture2D"); const char *shader_add = FRAG_SHADER_BLUR_ADD; char *extension = NULL; - if (use_texture_rect) + if (use_texture_rect) { mstrextend(&extension, "#extension GL_ARB_texture_rectangle : require\n"); + } if (ps->o.glx_use_gpushader4) { mstrextend(&extension, "#extension GL_EXT_gpu_shader4 : require\n"); shader_add = FRAG_SHADER_BLUR_ADD_GPUSHADER4; } + if (!extension) { + extension = strdup(""); + } for (int i = 0; i < MAX_BLUR_PASS && ps->o.blur_kerns[i]; ++i) { xcb_render_fixed_t *kern = ps->o.blur_kerns[i];