wined3d: Make wined3d_texture_set_dirty() static.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
445ed18b72
commit
08736f5048
|
@ -116,6 +116,11 @@ void wined3d_texture_validate_location(struct wined3d_texture *texture,
|
|||
TRACE("New locations flags are %s.\n", wined3d_debug_location(sub_resource->locations));
|
||||
}
|
||||
|
||||
static void wined3d_texture_set_dirty(struct wined3d_texture *texture)
|
||||
{
|
||||
texture->flags &= ~(WINED3D_TEXTURE_RGB_VALID | WINED3D_TEXTURE_SRGB_VALID);
|
||||
}
|
||||
|
||||
void wined3d_texture_invalidate_location(struct wined3d_texture *texture,
|
||||
unsigned int sub_resource_idx, DWORD location)
|
||||
{
|
||||
|
@ -430,11 +435,6 @@ void wined3d_texture_set_swapchain(struct wined3d_texture *texture, struct wined
|
|||
wined3d_resource_update_draw_binding(&texture->resource);
|
||||
}
|
||||
|
||||
void wined3d_texture_set_dirty(struct wined3d_texture *texture)
|
||||
{
|
||||
texture->flags &= ~(WINED3D_TEXTURE_RGB_VALID | WINED3D_TEXTURE_SRGB_VALID);
|
||||
}
|
||||
|
||||
/* Context activation is done by the caller. */
|
||||
void wined3d_texture_bind(struct wined3d_texture *texture,
|
||||
struct wined3d_context *context, BOOL srgb)
|
||||
|
|
|
@ -2586,7 +2586,6 @@ BOOL wined3d_texture_prepare_location(struct wined3d_texture *texture, unsigned
|
|||
struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN;
|
||||
void wined3d_texture_prepare_texture(struct wined3d_texture *texture,
|
||||
struct wined3d_context *context, BOOL srgb) DECLSPEC_HIDDEN;
|
||||
void wined3d_texture_set_dirty(struct wined3d_texture *texture) DECLSPEC_HIDDEN;
|
||||
void wined3d_texture_set_map_binding(struct wined3d_texture *texture, DWORD map_binding) DECLSPEC_HIDDEN;
|
||||
void wined3d_texture_set_swapchain(struct wined3d_texture *texture,
|
||||
struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN;
|
||||
|
|
Loading…
Reference in New Issue