summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-13 18:26:48 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-12-13 18:26:48 -0700
commita2b4d4a8db77443b834daf811802a909768fa926 (patch)
tree547b724cdebf685eef4107f848b7783067c88361 /src
parente2d7107cc2427a0e61949ead50cf0ac2c2bc6f11 (diff)
downloadexternal_mesa3d-a2b4d4a8db77443b834daf811802a909768fa926.zip
external_mesa3d-a2b4d4a8db77443b834daf811802a909768fa926.tar.gz
external_mesa3d-a2b4d4a8db77443b834daf811802a909768fa926.tar.bz2
add missing code for PIPE_FORMAT_S8_UNORM renderbuffer
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 254740f..c40f754 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -243,6 +243,10 @@ st_new_renderbuffer_fb(enum pipe_format format)
strb->Base.InternalFormat = GL_DEPTH24_STENCIL8_EXT;
strb->Base._BaseFormat = GL_DEPTH_STENCIL_EXT;
break;
+ case PIPE_FORMAT_S8_UNORM:
+ strb->Base.InternalFormat = GL_STENCIL_INDEX8_EXT;
+ strb->Base._BaseFormat = GL_STENCIL_INDEX;
+ break;
case PIPE_FORMAT_R16G16B16A16_SNORM:
strb->Base.InternalFormat = GL_RGBA16;
strb->Base._BaseFormat = GL_RGBA;