summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-06-06 08:06:34 -0600
committerBrian Paul <[email protected]>2011-06-06 08:06:34 -0600
commitb438005d961bc7fcc8cbedc34b8b15dfd09365b1 (patch)
treee70ab4c5bf48688dc82c7a319b117ee4d92b6b26 /src/mesa
parent155cf15ce216c3b67c13da1041401cbcc1c43b1e (diff)
st/mesa: fix renderbuffer internal format for accum buffer
Fixes an accum buffer regression since switching to the table-based format selection code.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 64424f77634..5b9e2037423 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -270,7 +270,8 @@ st_new_renderbuffer_fb(enum pipe_format format, int samples, boolean sw)
strb->Base.InternalFormat = GL_STENCIL_INDEX8_EXT;
break;
case PIPE_FORMAT_R16G16B16A16_SNORM:
- strb->Base.InternalFormat = GL_RGBA16;
+ /* accum buffer */
+ strb->Base.InternalFormat = GL_RGBA16_SNORM;
break;
case PIPE_FORMAT_R8_UNORM:
strb->Base.InternalFormat = GL_R8;