[PATCH 2/7] wined3d: Fix the TRACE in wined3d_texture_remove_buffer_object().
Matteo Bruni
mbruni at codeweavers.com
Mon Mar 13 18:09:53 CDT 2017
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
Noticed by Ken Thomases.
dlls/wined3d/texture.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index 2688735..5279af8 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -435,16 +435,16 @@ static HRESULT wined3d_texture_init(struct wined3d_texture *texture, const struc
static void wined3d_texture_remove_buffer_object(struct wined3d_texture *texture,
unsigned int sub_resource_idx, const struct wined3d_gl_info *gl_info)
{
- GLuint *buffer_object;
+ GLuint *buffer_object = &texture->sub_resources[sub_resource_idx].buffer_object;
- buffer_object = &texture->sub_resources[sub_resource_idx].buffer_object;
GL_EXTCALL(glDeleteBuffers(1, buffer_object));
checkGLcall("glDeleteBuffers");
- wined3d_texture_invalidate_location(texture, sub_resource_idx, WINED3D_LOCATION_BUFFER);
- *buffer_object = 0;
TRACE("Deleted buffer object %u for texture %p, sub-resource %u.\n",
*buffer_object, texture, sub_resource_idx);
+
+ wined3d_texture_invalidate_location(texture, sub_resource_idx, WINED3D_LOCATION_BUFFER);
+ *buffer_object = 0;
}
static void wined3d_texture_update_map_binding(struct wined3d_texture *texture)
--
2.10.2
More information about the wine-patches
mailing list