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

wined3d: Fail event query creation when event queries are not supported.

parent 0a5e205c
......@@ -732,11 +732,8 @@ static HRESULT query_init(struct wined3d_query *query, struct wined3d_device *de
TRACE("Event query.\n");
if (!wined3d_event_query_supported(gl_info))
{
/* Half-Life 2 needs this query. It does not render the main
* menu correctly otherwise. Pretend to support it, faking
* this query does not do much harm except potentially
* lowering performance. */
FIXME("Event query: Unimplemented, but pretending to be supported.\n");
WARN("Event queries not supported.\n");
return WINED3DERR_NOTAVAILABLE;
}
query->query_ops = &event_query_ops;
query->data_size = sizeof(BOOL);
......
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