[PATCH 4/5] wined3d: Don't bother allocating "free_occlusion_queries" in context_create().

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 4/5] wined3d: Don't bother allocating "free_occlusion_queries" in context_create().

Henri Verbeet-2
Signed-off-by: Henri Verbeet <[hidden email]>
---
 dlls/wined3d/context.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 476d96939b8..ab5d9c3ee97 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1902,12 +1902,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
         goto out;
     list_init(&context->timestamp_queries);
 
-    context->free_occlusion_query_size = 4;
-    if (!(context->free_occlusion_queries = heap_calloc(context->free_occlusion_query_size,
-            sizeof(*context->free_occlusion_queries))))
-        goto out;
     list_init(&context->occlusion_queries);
-
     list_init(&context->fences);
     list_init(&context->so_statistics_queries);
     list_init(&context->pipeline_statistics_queries);
@@ -1987,7 +1982,6 @@ out:
         wined3d_release_dc(swapchain->win_handle, context->hdc);
     device->shader_backend->shader_free_context_data(context);
     device->adapter->fragment_pipe->free_context_data(context);
-    heap_free(context->free_occlusion_queries);
     heap_free(context->free_timestamp_queries);
     heap_free(context);
     return NULL;
--
2.11.0