diff options
author | Brian Paul <[email protected]> | 2010-03-08 10:00:17 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-03-08 10:00:17 -0700 |
commit | 1e431f04544fb7dfc19e20d3903962a88e4e88ba (patch) | |
tree | 7673132977656d974426519e99cad3afe841ec29 /src | |
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)
Diffstat (limited to 'src')
-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 37cb2cc5dda..ac5fdf8d17a 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; |