Module: wine Branch: master Commit: 6894d8022a13b5258172222e31d4dbd670aa5a21 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6894d8022a13b5258172222e31...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Jun 29 23:14:13 2011 +0200
wined3d: Make the device parameter to context_resource_released() const.
---
dlls/wined3d/context.c | 2 +- dlls/wined3d/wined3d_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index a37c664..4040083 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -604,7 +604,7 @@ static void context_queue_fbo_entry_destruction(struct wined3d_context *context, list_add_head(&context->fbo_destroy_list, &entry->entry); }
-void context_resource_released(struct wined3d_device *device, +void context_resource_released(const struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) { if (!device->d3d_initialized) return; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 81b5119..ad75c62 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1236,7 +1236,7 @@ void context_free_occlusion_query(struct wined3d_occlusion_query *query) DECLSPE struct wined3d_context *context_get_current(void) DECLSPEC_HIDDEN; DWORD context_get_tls_idx(void) DECLSPEC_HIDDEN; void context_release(struct wined3d_context *context) DECLSPEC_HIDDEN; -void context_resource_released(struct wined3d_device *device, +void context_resource_released(const struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN; void context_resource_unloaded(struct wined3d_device *device, struct wined3d_resource *resource, WINED3DRESOURCETYPE type) DECLSPEC_HIDDEN;