Commit 7b32c8ab authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wined3d: Zero-initialize count.

This prevents the loop below accessing beyond multisample_types if the GL_NUM_SAMPLE_COUNTS call fails. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 8bc68f34
......@@ -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)");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment