Huw Davies : wined3d: Zero-initialize count.
Alexandre Julliard
julliard at winehq.org
Thu Mar 16 17:25:15 CDT 2017
Module: wine
Branch: master
Commit: 7b32c8ab3ea4df7d57222b9f9923d2cb7142ea38
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b32c8ab3ea4df7d57222b9f9923d2cb7142ea38
Author: Huw Davies <huw at codeweavers.com>
Date: Wed Mar 15 16:50:19 2017 +0000
wined3d: Zero-initialize count.
This prevents the loop below accessing beyond multisample_types
if the GL_NUM_SAMPLE_COUNTS call fails.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/utils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 3f9c012..dd78583 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -2803,6 +2803,7 @@ static void query_internal_format(struct wined3d_adapter *adapter,
{
if (gl_info->supported[ARB_INTERNALFORMAT_QUERY])
{
+ count = 0;
GL_EXTCALL(glGetInternalformativ(GL_RENDERBUFFER, format->glInternal,
GL_NUM_SAMPLE_COUNTS, 1, &count));
checkGLcall("glGetInternalformativ(GL_NUM_SAMPLE_COUNTS)");
More information about the wine-cvs
mailing list