summaryrefslogtreecommitdiff
path: root/src/glx/glitz_glx_drawable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/glitz_glx_drawable.c')
-rw-r--r--src/glx/glitz_glx_drawable.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/glx/glitz_glx_drawable.c b/src/glx/glitz_glx_drawable.c
index d92ad14..9685c10 100644
--- a/src/glx/glitz_glx_drawable.c
+++ b/src/glx/glitz_glx_drawable.c
@@ -241,3 +241,25 @@ glitz_glx_swap_buffers (void *abstract_drawable)
return 1;
}
+
+glitz_bool_t
+glitz_glx_copy_sub_buffer (void *abstract_drawable,
+ int x,
+ int y,
+ int width,
+ int height)
+{
+ glitz_glx_drawable_t *drawable = (glitz_glx_drawable_t *)
+ abstract_drawable;
+ glitz_glx_screen_info_t *screen_info = drawable->screen_info;
+
+ if (screen_info->glx_feature_mask & GLITZ_GLX_FEATURE_COPY_SUB_BUFFER_MASK)
+ {
+ screen_info->glx.copy_sub_buffer (screen_info->display_info->display,
+ drawable->drawable,
+ x, y, width, height);
+ return 1;
+ }
+
+ return 0;
+}