new backend: add interface for query blur size

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-07-13 16:55:26 +01:00
parent 9cb7fcf645
commit 4c9ded837f
5 changed files with 16 additions and 0 deletions

View File

@@ -907,6 +907,12 @@ out:
return ctx;
}
void gl_get_blur_size(void *blur_context, int *width, int *height) {
struct gl_blur_context *ctx = blur_context;
*width = ctx->resize_width;
*height = ctx->resize_height;
}
// clang-format off
const char *win_shader_glsl = GLSL(330,
uniform float opacity;