Module: Mesa Branch: master Commit: 9543f7f05f416ef6c1ac160e12e2d7ceed3b32ae URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9543f7f05f416ef6c1ac160e12e2d7ceed3b32ae
Author: Maciej Cencora <[email protected]> Date: Sat Feb 6 19:37:23 2010 +0100 radeon: fallback to software in glCopyTexImage if blit isn't available --- src/mesa/drivers/dri/radeon/radeon_tex_copy.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c index 89fe991..a4bb03d 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c +++ b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c @@ -53,6 +53,10 @@ do_copy_texsubimage(GLcontext *ctx, unsigned src_width; unsigned dst_width; + if (!radeon->vtbl.blit) { + return GL_FALSE; + } + if (_mesa_get_format_bits(timg->base.TexFormat, GL_DEPTH_BITS) > 0) { rrb = radeon_get_depthbuffer(radeon); } else { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
