Matteo Bruni : wined3d: Don't query aux buffers count on core profile.
Alexandre Julliard
julliard at winehq.org
Wed Feb 8 15:52:12 CST 2017
Module: wine
Branch: master
Commit: e99937ef51fa31b44abba050acf168a83e7d88d6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e99937ef51fa31b44abba050acf168a83e7d88d6
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Tue Feb 7 22:08:40 2017 +0100
wined3d: Don't query aux buffers count on core profile.
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/context.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index e8cc3fc..61c9367 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1908,7 +1908,8 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
}
}
- gl_info->gl_ops.gl.p_glGetIntegerv(GL_AUX_BUFFERS, &ret->aux_buffers);
+ if (gl_info->supported[WINED3D_GL_LEGACY_CONTEXT])
+ gl_info->gl_ops.gl.p_glGetIntegerv(GL_AUX_BUFFERS, &ret->aux_buffers);
TRACE("Setting up the screen\n");
More information about the wine-cvs
mailing list