diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 0b7f10f1a6f..20bb6d64629 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -2341,14 +2341,8 @@ static void context_setup_target(struct wined3d_device *device, { /* Read the back buffer of the old drawable into the destination texture. */ if (context->current_rt->texture_name_srgb) - { - surface_internal_preload(context->current_rt, SRGB_BOTH); - } - else - { - surface_internal_preload(context->current_rt, SRGB_RGB); - } - + surface_internal_preload(context->current_rt, SRGB_SRGB); + surface_internal_preload(context->current_rt, SRGB_RGB); surface_modify_location(context->current_rt, SFLAG_INDRAWABLE, FALSE); } } diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index f3f38d73a9d..22b0907ff62 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -683,9 +683,6 @@ static void texture2d_preload(struct wined3d_texture *texture, enum WINED3DSRGB srgb_mode = FALSE; break; - case SRGB_BOTH: - texture2d_preload(texture, SRGB_RGB); - /* Fallthrough */ case SRGB_SRGB: srgb_mode = TRUE; break; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 05393397c90..b31239ba7c0 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1876,7 +1876,6 @@ enum WINED3DSRGB SRGB_ANY = 0, /* Uses the cached value(e.g. external calls) */ SRGB_RGB = 1, /* Loads the rgb texture */ SRGB_SRGB = 2, /* Loads the srgb texture */ - SRGB_BOTH = 3, /* Loads both textures */ }; struct gl_texture