Commit ca35a556 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Pass a wined3d_context_gl structure to wined3d_query_destroy_buffer_object().

parent 5e0b0d35
......@@ -54,9 +54,9 @@ static void wined3d_query_create_buffer_object(struct wined3d_context_gl *contex
query->buffer_object = buffer_object;
}
static void wined3d_query_destroy_buffer_object(struct wined3d_context *context, struct wined3d_query *query)
static void wined3d_query_destroy_buffer_object(struct wined3d_context_gl *context_gl, struct wined3d_query *query)
{
const struct wined3d_gl_info *gl_info = context->gl_info;
const struct wined3d_gl_info *gl_info = context_gl->c.gl_info;
GL_EXTCALL(glDeleteBuffers(1, &query->buffer_object));
checkGLcall("query buffer object destruction");
......@@ -93,7 +93,7 @@ static BOOL wined3d_query_buffer_queue_result(struct wined3d_context *context, s
if (wined3d_query_buffer_is_valid(query))
wined3d_query_buffer_invalidate(query);
else
wined3d_query_destroy_buffer_object(context, query);
wined3d_query_destroy_buffer_object(context_gl, query);
}
if (!query->buffer_object)
......@@ -434,8 +434,9 @@ static void wined3d_query_destroy_object(void *object)
if (query->buffer_object)
{
struct wined3d_context *context;
context = context_acquire(query->device, NULL, 0);
wined3d_query_destroy_buffer_object(context, query);
wined3d_query_destroy_buffer_object(wined3d_context_gl(context), query);
context_release(context);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment