summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-08 10:00:17 -0700
committerBrian Paul <brianp@vmware.com>2010-03-08 10:00:17 -0700
commit1e431f04544fb7dfc19e20d3903962a88e4e88ba (patch)
tree7673132977656d974426519e99cad3afe841ec29
parent4cc8d1d79fb18d2b18e9fe2d4cbcf05ab89c66dc (diff)
mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer
MESA_FORMAT_Z16 has no stencil bits. (cherry picked from commit 614f490ca918f891cd70674ea7841d5b2a97e9ef)
-rw-r--r--src/mesa/main/texrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c
index 37cb2cc5dd..ac5fdf8d17 100644
--- a/src/mesa/main/texrender.c
+++ b/src/mesa/main/texrender.c
@@ -504,7 +504,7 @@ update_wrapper(GLcontext *ctx, const struct gl_renderbuffer_attachment *att)
else if (trb->TexImage->TexFormat == MESA_FORMAT_Z16) {
trb->Base.Format = MESA_FORMAT_Z16;
trb->Base.DataType = GL_UNSIGNED_SHORT;
- trb->Base._BaseFormat = GL_DEPTH_STENCIL;
+ trb->Base._BaseFormat = GL_DEPTH_COMPONENT;
}
else if (trb->TexImage->TexFormat == MESA_FORMAT_Z32) {
trb->Base.Format = MESA_FORMAT_Z32;