diff options
author | Eric Anholt <eric@anholt.net> | 2009-12-28 18:15:06 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-12-28 18:52:47 -0800 |
commit | 089144e4e525883995d609af5040b2355043945e (patch) | |
tree | 56c180a117509744ea0490f8798e7ff7285359cf /src/mesa/drivers/dri/intel/intel_fbo.c | |
parent | e4df8d32b510a3f00c12477985818c9d42a0b178 (diff) |
intel: Allow binding a stencil but not a depth buffer.
Wine's d3d9 visual.c testcase tries this a lot, so I've added some
piglit tests (fbo-nodepth-test, fbo-nostencil-test, fbo-stencil-only)
and enabled it.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_fbo.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index dc96b36a15..b5ca418b0b 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -591,7 +591,7 @@ intel_validate_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb) intel_get_renderbuffer(fb, BUFFER_STENCIL); int i; - if (stencilRb && stencilRb != depthRb) { + if (depthRb && stencilRb && stencilRb != depthRb) { /* we only support combined depth/stencil buffers, not separate * stencil buffers. */ |