From 6948e60c74876e40cad97d049770aa094528a7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 3 Mar 2015 00:47:01 +0100 Subject: [PATCH] renderer: fix check for streamout target object insert --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index bc0b16f..8ce1a30 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -5018,7 +5018,7 @@ int vrend_create_so_target(struct vrend_context *ctx, ret_handle = vrend_renderer_object_insert(ctx, target, sizeof(*target), handle, VIRGL_OBJECT_STREAMOUT_TARGET); - if (ret_handle) { + if (ret_handle == 0) { FREE(target); return ENOMEM; }