mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
intel: Check for a NULL src buffer prior to blt
This can only happen along a malloc failure path, but check anyway. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
85cfe32180
commit
66708fd8a9
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ do_copy_texsubimage(struct intel_context *intel,
|
|||
GLcontext *ctx = &intel->ctx;
|
||||
const struct intel_region *src = get_teximage_source(intel, internalFormat);
|
||||
|
||||
if (!intelImage->mt || !src) {
|
||||
if (!intelImage->mt || !src || !src->buffer) {
|
||||
if (INTEL_DEBUG & DEBUG_FALLBACKS)
|
||||
fprintf(stderr, "%s fail %p %p (0x%08x)\n",
|
||||
__FUNCTION__, intelImage->mt, src, internalFormat);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue