wined3d: Make the "texture" parameter to wined3d_texture_get_sub_resource() const.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b170952230
commit
24b95aaff4
|
@ -691,7 +691,7 @@ void CDECL wined3d_texture_generate_mipmaps(struct wined3d_texture *texture)
|
||||||
FIXME("texture %p stub!\n", texture);
|
FIXME("texture %p stub!\n", texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wined3d_resource * CDECL wined3d_texture_get_sub_resource(struct wined3d_texture *texture,
|
struct wined3d_resource * CDECL wined3d_texture_get_sub_resource(const struct wined3d_texture *texture,
|
||||||
UINT sub_resource_idx)
|
UINT sub_resource_idx)
|
||||||
{
|
{
|
||||||
UINT sub_count = texture->level_count * texture->layer_count;
|
UINT sub_count = texture->level_count * texture->layer_count;
|
||||||
|
|
|
@ -2527,7 +2527,7 @@ DWORD __cdecl wined3d_texture_get_level_count(const struct wined3d_texture *text
|
||||||
DWORD __cdecl wined3d_texture_get_lod(const struct wined3d_texture *texture);
|
DWORD __cdecl wined3d_texture_get_lod(const struct wined3d_texture *texture);
|
||||||
void * __cdecl wined3d_texture_get_parent(const struct wined3d_texture *texture);
|
void * __cdecl wined3d_texture_get_parent(const struct wined3d_texture *texture);
|
||||||
struct wined3d_resource * __cdecl wined3d_texture_get_resource(struct wined3d_texture *texture);
|
struct wined3d_resource * __cdecl wined3d_texture_get_resource(struct wined3d_texture *texture);
|
||||||
struct wined3d_resource * __cdecl wined3d_texture_get_sub_resource(struct wined3d_texture *texture,
|
struct wined3d_resource * __cdecl wined3d_texture_get_sub_resource(const struct wined3d_texture *texture,
|
||||||
UINT sub_resource_idx);
|
UINT sub_resource_idx);
|
||||||
ULONG __cdecl wined3d_texture_incref(struct wined3d_texture *texture);
|
ULONG __cdecl wined3d_texture_incref(struct wined3d_texture *texture);
|
||||||
void __cdecl wined3d_texture_preload(struct wined3d_texture *texture);
|
void __cdecl wined3d_texture_preload(struct wined3d_texture *texture);
|
||||||
|
|
Loading…
Reference in New Issue