diff options
author | Edward O'Callaghan <[email protected]> | 2016-03-26 18:35:06 +1100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-03-27 18:00:35 +0200 |
commit | ca22d2f1fdb09e9b77394bc88418251034d344b5 (patch) | |
tree | 699a29763727e92c8fd1197c84c132a3790e181d /src/gallium | |
parent | 1fb05a9a0cf12a16429cf7a02777390a9dfa19b3 (diff) |
radeon/r600: Fix return type in failure branch
Commit `d4e847ea` introduced a warning about making an
integer from a pointer without a cast, fix it here.
Signed-off-by: Edward O'Callaghan <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 7322f3ee985..83fc0021227 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -335,7 +335,7 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen, */ if (resource->target != PIPE_BUFFER && (resource->nr_samples > 1 || rtex->is_depth)) - return NULL; + return false; if (!res->is_shared) { res->is_shared = true; |