diff options
-rw-r--r-- | src/gallium/drivers/tegra/tegra_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/tegra/tegra_screen.c b/src/gallium/drivers/tegra/tegra_screen.c index 669f22a1944..dde2d76d107 100644 --- a/src/gallium/drivers/tegra/tegra_screen.c +++ b/src/gallium/drivers/tegra/tegra_screen.c @@ -254,7 +254,7 @@ static int tegra_screen_import_resource(struct tegra_screen *screen, close(fd); - if (!has_modifiers) { + if (err == 0 && !has_modifiers) { memset(&args, 0, sizeof(args)); args.handle = resource->handle; |