Fix double free when texture allocation fails + fix a null pointer deref
(1) The struct holding the resource is allocated outside vrend_renderer_resource_allocated_texture
, and when the texture allocation itself fails, then this struct is freed after returning from that call (or for the intermediate blit texture it is asserted that texture allocation doesn't fail, because there it should never fail). Therefore, the struct must not be freed inside vrend_renderer_resource_allocated_texture
(2) when one tries to launch a grid but no CS was sent before, then a null pointer dereference hit, this MR adds a test and fixes this.
Fixes #154 Fixes #155