summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_texcopy.c
diff options
context:
space:
mode:
authorMaciej Cencora <m.cencora@gmail.com>2009-11-10 19:47:04 +0100
committerMaciej Cencora <m.cencora@gmail.com>2009-12-12 00:52:51 +0100
commitc1a7cc1e44e2c318eaa1de67893d20774f6fec5f (patch)
tree5826bd27e510856a6a2feaf4be13ba8062be3093 /src/mesa/drivers/dri/r300/r300_texcopy.c
parentcd5f167353f16fb4f5b349002625b704f3e23778 (diff)
more blit fixes
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_texcopy.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_texcopy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texcopy.c b/src/mesa/drivers/dri/r300/r300_texcopy.c
index 039276eacc..1e10c7326c 100644
--- a/src/mesa/drivers/dri/r300/r300_texcopy.c
+++ b/src/mesa/drivers/dri/r300/r300_texcopy.c
@@ -49,10 +49,8 @@ do_copy_texsubimage(GLcontext *ctx,
struct r300_context *r300 = R300_CONTEXT(ctx);
struct radeon_renderbuffer *rrb;
- if (_mesa_get_format_bits(timg->base.TexFormat, GL_DEPTH_BITS) ||
- _mesa_get_format_bits(timg->base.TexFormat, GL_STENCIL_BITS)) {
+ if (_mesa_get_format_bits(timg->base.TexFormat, GL_DEPTH_BITS) > 0) {
rrb = radeon_get_depthbuffer(&r300->radeon);
- return GL_FALSE;
} else {
rrb = radeon_get_colorbuffer(&r300->radeon);
}