Fix cursor resource creation

macos/master
Marc-André Lureau 10 years ago
parent 6b04d57ec4
commit b5be63c8dc
  1. 3
      src/vrend_renderer.c

@ -3362,7 +3362,8 @@ static int check_resource_valid(struct vrend_renderer_resource_create_args *args
} else { } else {
if (!((args->bind & PIPE_BIND_SAMPLER_VIEW) || if (!((args->bind & PIPE_BIND_SAMPLER_VIEW) ||
(args->bind & PIPE_BIND_DEPTH_STENCIL) || (args->bind & PIPE_BIND_DEPTH_STENCIL) ||
(args->bind & PIPE_BIND_RENDER_TARGET))) (args->bind & PIPE_BIND_RENDER_TARGET) ||
(args->bind & PIPE_BIND_CURSOR)))
return -1; return -1;
if (args->target == PIPE_TEXTURE_2D || if (args->target == PIPE_TEXTURE_2D ||

Loading…
Cancel
Save