diff options
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r-- | video/out/gl_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h index 1cb3a5c441..1d33682f3e 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -109,6 +109,10 @@ typedef struct MPGLContext { void (*register_resize_callback)(struct vo *vo, void (*cb)(struct vo *vo, int w, int h)); + // Optional activity state of context. + // If false, OpenGL renderers should not draw anything. + bool (*is_active)(struct MPGLContext *); + // For free use by the backend. void *priv; } MPGLContext; |