diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-08 10:00:17 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-08 10:00:17 -0700 |
commit | 1e431f04544fb7dfc19e20d3903962a88e4e88ba (patch) | |
tree | 7673132977656d974426519e99cad3afe841ec29 | |
parent | 4cc8d1d79fb18d2b18e9fe2d4cbcf05ab89c66dc (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.c | 2 |
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; |