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>
This commit is contained in:
parent
0a5e205c06
commit
d18ff87af9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue