st/mesa: fix renderbuffer internal format for accum buffer
authorBrian Paul <brianp@vmware.com>
Mon, 6 Jun 2011 14:06:34 +0000 (08:06 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 6 Jun 2011 14:06:34 +0000 (08:06 -0600)
Fixes an accum buffer regression since switching to the table-based
format selection code.

src/mesa/state_tracker/st_cb_fbo.c

index 64424f77634747fa720a95c30a69ba234a133745..5b9e2037423ef2c7f0432fba74c592c1ba706da4 100644 (file)
@@ -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;