diff options
-rw-r--r-- | glx/glxdri2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 77b530721..c896536c8 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -84,2 +84,4 @@ struct __GLXDRIcontext { +#define MAX_DRAWABLE_BUFFERS 5 + struct __GLXDRIdrawable { @@ -92,3 +94,3 @@ struct __GLXDRIdrawable { int height; - __DRIbuffer buffers[5]; + __DRIbuffer buffers[MAX_DRAWABLE_BUFFERS]; int count; @@ -409,3 +411,3 @@ dri2GetBuffers(__DRIdrawable *driDrawable, width, height, attachments, count, out_count); - if (*out_count > 5) { + if (*out_count > MAX_DRAWABLE_BUFFERS) { *out_count = 0; |