[PATCH 4/5] wined3d: Fail event query creation when event queries are not supported.

Henri Verbeet hverbeet at codeweavers.com
Thu Jul 21 08:57:59 CDT 2016


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 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);
-- 
2.1.4




More information about the wine-patches mailing list