On 26 September 2018 at 22:54, Andrew Wesie awesie@gmail.com wrote:
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45723 Signed-off-by: Andrew Wesie awesie@gmail.com
v2: Remove QUERY_INVALID_VALUE. Instead, use two elements of results buffer. Initialize the elements to different values, then update both of them with the query result. Once the elements are equal, we know that we have the result.
dlls/wined3d/adapter_gl.c | 6 ++ dlls/wined3d/query.c | 166 ++++++++++++++++++++++++++++++++++++----- dlls/wined3d/wined3d_gl.h | 2 + dlls/wined3d/wined3d_private.h | 3 + 4 files changed, 158 insertions(+), 19 deletions(-)
Unfortunately this patch fails the tests, due to issues related to handling query restarts. I've attached a slightly modified version that does pass the tests for me. Does the attached patch work for you?