radeon/r600: Fix return type in failure branch
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Sat, 26 Mar 2016 07:35:06 +0000 (18:35 +1100)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 27 Mar 2016 16:00:35 +0000 (18:00 +0200)
Commit `d4e847ea` introduced a warning about making an
integer from a pointer without a cast, fix it here.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 7322f3ee9854a2b0a8fefe4f28e18698d3f37cf5..83fc002122775376f67c6724c67509bb5570f7ab 100644 (file)
@@ -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;