1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wined3d: Set the tex_type field of the FFP fragment settings from the resource's GL type.

This commit is contained in:
Zebediah Figura 2023-02-16 19:18:33 -06:00 committed by Alexandre Julliard
parent 36597df656
commit df70800b12

View file

@ -6437,30 +6437,9 @@ void wined3d_ffp_get_fs_settings(const struct wined3d_context *context, const st
else
settings->op[i].color_fixup = texture->resource.format->color_fixup;
if (ignore_textype)
{
settings->op[i].tex_type = WINED3D_GL_RES_TYPE_TEX_1D;
}
else
{
switch (wined3d_texture_gl(texture)->target)
{
case GL_TEXTURE_1D:
settings->op[i].tex_type = WINED3D_GL_RES_TYPE_TEX_1D;
break;
case GL_TEXTURE_2D:
settings->op[i].tex_type = WINED3D_GL_RES_TYPE_TEX_2D;
break;
case GL_TEXTURE_3D:
settings->op[i].tex_type = WINED3D_GL_RES_TYPE_TEX_3D;
break;
case GL_TEXTURE_CUBE_MAP_ARB:
settings->op[i].tex_type = WINED3D_GL_RES_TYPE_TEX_CUBE;
break;
case GL_TEXTURE_RECTANGLE_ARB:
settings->op[i].tex_type = WINED3D_GL_RES_TYPE_TEX_RECT;
break;
}
}
settings->op[i].tex_type = texture->resource.gl_type;
} else {
settings->op[i].color_fixup = COLOR_FIXUP_IDENTITY;
settings->op[i].tex_type = WINED3D_GL_RES_TYPE_TEX_1D;