diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_copy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index 94e90da5eaa..4a13b9ae2c2 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -62,6 +62,12 @@ intel_copy_texsubimage(struct intel_context *intel, intel_prepare_render(intel); + /* glCopyTexSubImage() can't be called on multisampled renderbuffers or + * textures. + */ + assert(!irb->Base.Base.NumSamples); + assert(!intelImage->base.Base.NumSamples); + if (!intelImage->mt || !irb || !irb->mt) { if (unlikely(INTEL_DEBUG & DEBUG_PERF)) fprintf(stderr, "%s fail %p %p (0x%08x)\n", |