Commit c05b39e7 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Reject uploads for multisample textures.

parent 9ddffbd3
......@@ -1919,15 +1919,20 @@ void wined3d_texture_upload_data(struct wined3d_texture *texture, unsigned int s
target = wined3d_texture_get_sub_resource_target(texture, sub_resource_idx);
level = sub_resource_idx % texture->level_count;
if (target == GL_TEXTURE_1D_ARRAY)
{
dst_y = sub_resource_idx / texture->level_count;
update_h = 1;
}
else if (target == GL_TEXTURE_2D_ARRAY)
switch (target)
{
dst_z = sub_resource_idx / texture->level_count;
update_d = 1;
case GL_TEXTURE_1D_ARRAY:
dst_y = sub_resource_idx / texture->level_count;
update_h = 1;
break;
case GL_TEXTURE_2D_ARRAY:
dst_z = sub_resource_idx / texture->level_count;
update_d = 1;
break;
case GL_TEXTURE_2D_MULTISAMPLE:
case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
FIXME("Not supported for multisample textures.\n");
return;
}
bo.buffer_object = data->buffer_object;
......
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