gpu.c: create_tile: improve error handling
commitf40c20d99c2c62a71bcef49ab4cbcb7a9e8b4026
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 2 Oct 2013 19:54:23 +0000 (2 21:54 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 16 Mar 2015 13:34:59 +0000 (16 14:34 +0100)
treeeb43ce6c67d5abb08d0847467d26717ecc5562bb
parentad34c42c40449a095e02feabb5a88fc9702d8741
gpu.c: create_tile: improve error handling

In particular, avoid the use of assert, returning NULL on failure instead.
This allows us to avoid including assert.h when we extract out these
functions to a separate file.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c