summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_surface.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-14 11:55:45 -0600
committerBrian <[email protected]>2007-10-14 11:55:45 -0600
commit90f7ae2370630c45acb9287465806e5fcac44033 (patch)
tree35dde3075d4eead867b25290a10dc706c9c83069 /src/mesa/drivers/x11/xm_surface.c
parent7b0b694406e4043cb163f9832c9c02934fa54568 (diff)
accum buffer support
Diffstat (limited to 'src/mesa/drivers/x11/xm_surface.c')
-rw-r--r--src/mesa/drivers/x11/xm_surface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_surface.c b/src/mesa/drivers/x11/xm_surface.c
index d40d9eda84f..70fa97b3395 100644
--- a/src/mesa/drivers/x11/xm_surface.c
+++ b/src/mesa/drivers/x11/xm_surface.c
@@ -277,10 +277,11 @@ xmesa_supported_formats(struct pipe_context *pipe, GLuint *numFormats)
{
static const GLuint formats[] = {
PIPE_FORMAT_U_A8_R8_G8_B8,
+ PIPE_FORMAT_S_R16_G16_B16_A16,
PIPE_FORMAT_S8_Z24
};
- *numFormats = 2;
+ *numFormats = sizeof(formats) / sizeof(formats[0]);
return formats;
}