Henri Verbeet : wined3d: Make the device parameter to primary_render_target_is_p8() const.
Alexandre Julliard
julliard at winehq.org
Mon Jul 11 13:17:48 CDT 2011
Module: wine
Branch: master
Commit: 3e9930f307c689daa0792a75152e2dd89c79a58b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3e9930f307c689daa0792a75152e2dd89c79a58b
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Jul 11 01:06:42 2011 +0200
wined3d: Make the device parameter to primary_render_target_is_p8() const.
---
dlls/wined3d/surface.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index ce669e1..110e206 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;
More information about the wine-cvs
mailing list