diff --git a/gfx/drivers/ctr_gfx.c b/gfx/drivers/ctr_gfx.c index 681c568b73..3d383f9ab0 100644 --- a/gfx/drivers/ctr_gfx.c +++ b/gfx/drivers/ctr_gfx.c @@ -972,7 +972,7 @@ static uintptr_t ctr_load_texture(void *video_data, void *data, struct texture_image *image = (struct texture_image*)data; if(!ctr || !image) - return; + return 0; ctr_texture_t* texture = calloc(1, sizeof(ctr_texture_t)); uint32_t texsize = image->width * image->height * sizeof(uint32_t);