From 3e9930f307c689daa0792a75152e2dd89c79a58b Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 11 Jul 2011 01:06:42 +0200 Subject: [PATCH] wined3d: Make the device parameter to primary_render_target_is_p8() const. --- dlls/wined3d/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index ce669e1dea9..110e2069003 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1984,11 +1984,11 @@ void surface_bind(struct wined3d_surface *surface, const struct wined3d_gl_info } /* This function checks if the primary render target uses the 8bit paletted format. */ -static BOOL primary_render_target_is_p8(struct wined3d_device *device) +static BOOL primary_render_target_is_p8(const struct wined3d_device *device) { if (device->fb.render_targets && device->fb.render_targets[0]) { - struct wined3d_surface *render_target = device->fb.render_targets[0]; + const struct wined3d_surface *render_target = device->fb.render_targets[0]; if ((render_target->resource.usage & WINED3DUSAGE_RENDERTARGET) && (render_target->resource.format->id == WINED3DFMT_P8_UINT)) return TRUE; -- 2.11.4.GIT