Commit 1b26c278 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Simplify wined3d_device_update_sub_resource() a little.

parent 6ea4445c
...@@ -4248,7 +4248,7 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str ...@@ -4248,7 +4248,7 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
height = 1; height = 1;
depth = 1; depth = 1;
} }
else if (resource->type == WINED3D_RTYPE_TEXTURE_2D || resource->type == WINED3D_RTYPE_TEXTURE_3D) else
{ {
struct wined3d_texture *texture = texture_from_resource(resource); struct wined3d_texture *texture = texture_from_resource(resource);
unsigned int level; unsigned int level;
...@@ -4264,11 +4264,6 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str ...@@ -4264,11 +4264,6 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
height = wined3d_texture_get_level_height(texture, level); height = wined3d_texture_get_level_height(texture, level);
depth = wined3d_texture_get_level_depth(texture, level); depth = wined3d_texture_get_level_depth(texture, level);
} }
else
{
FIXME("Not implemented for %s resources.\n", debug_d3dresourcetype(resource->type));
return;
}
if (!box) if (!box)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment