renderer: fix check for streamout target object insert

macos/master
Marc-André Lureau 10 years ago
parent 135dc05084
commit 6948e60c74
  1. 2
      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, ret_handle = vrend_renderer_object_insert(ctx, target, sizeof(*target), handle,
VIRGL_OBJECT_STREAMOUT_TARGET); VIRGL_OBJECT_STREAMOUT_TARGET);
if (ret_handle) { if (ret_handle == 0) {
FREE(target); FREE(target);
return ENOMEM; return ENOMEM;
} }

Loading…
Cancel
Save