Commit 07228191 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Don't override texture parameters for COND_NP2 on multisample textures.

Those parameters are not supported on multisample textures in the first place (basically, GL mandates ARB_sampler_objects for those). The combination COND_NP2 + ARB_texture_multisample is not expected to happen without wined3d configuration overrides.
parent 5f0d6afc
...@@ -1377,7 +1377,8 @@ GLuint wined3d_texture_gl_prepare_gl_texture(struct wined3d_texture_gl *texture_ ...@@ -1377,7 +1377,8 @@ GLuint wined3d_texture_gl_prepare_gl_texture(struct wined3d_texture_gl *texture_
gl_info->gl_ops.gl.p_glTexParameteri(target, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); gl_info->gl_ops.gl.p_glTexParameteri(target, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
} }
if (texture_gl->t.flags & WINED3D_TEXTURE_COND_NP2) if (texture_gl->t.flags & WINED3D_TEXTURE_COND_NP2 && target != GL_TEXTURE_2D_MULTISAMPLE
&& target != GL_TEXTURE_2D_MULTISAMPLE_ARRAY)
{ {
/* Conditional non power of two textures use a different clamping /* Conditional non power of two textures use a different clamping
* default. If we're using the GL_WINE_normalized_texrect partial * default. If we're using the GL_WINE_normalized_texrect partial
......
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