[PATCH 7/8] wined3d: Dump sample counts for cube maps (Coverity).
Józef Kucia
jkucia at codeweavers.com
Tue Feb 20 16:59:44 CST 2018
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/wined3d/context.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 9b6c19ef6541..6b1bc3a658e4 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -282,6 +282,10 @@ static void context_dump_fbo_attachment(const struct wined3d_gl_info *gl_info, G
gl_info->gl_ops.gl.p_glGetTexLevelParameteriv(face, level, GL_TEXTURE_INTERNAL_FORMAT, &fmt);
gl_info->gl_ops.gl.p_glGetTexLevelParameteriv(face, level, GL_TEXTURE_WIDTH, &width);
gl_info->gl_ops.gl.p_glGetTexLevelParameteriv(face, level, GL_TEXTURE_HEIGHT, &height);
+ if (gl_info->supported[ARB_TEXTURE_MULTISAMPLE])
+ gl_info->gl_ops.gl.p_glGetTexLevelParameteriv(face, level, GL_TEXTURE_SAMPLES, &samples);
+ else
+ samples = 1;
tex_target = GL_TEXTURE_CUBE_MAP;
tex_type_str = "cube";
--
2.13.6
More information about the wine-devel
mailing list