Module: wine Branch: master Commit: d18ff87af9ef38b1fe10f0be6d04899da22ddfc4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d18ff87af9ef38b1fe10f0be6d...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Jul 21 15:57:59 2016 +0200
wined3d: Fail event query creation when event queries are not supported.
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/query.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index c09fe86..0683731 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -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);