mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
intel: Add an assert for glCopyTexSubImage() being called on MSAA buffers.
This is just in case someone else trips over this due to our weird reuse of this code in glBlitFramebuffer(). Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
7638f5578e
commit
045612c90e
1 changed files with 6 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue