mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/tpf: Remove an unnecessary local variable declaration.
Found with -Wshadow.
This commit is contained in:
parent
2d1825bb89
commit
10957bebbf
Notes:
Alexandre Julliard
2023-11-28 00:12:56 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/494
@ -3528,8 +3528,8 @@ static void write_sm4_rdef(struct hlsl_ctx *ctx, struct dxbc_writer *dxbc)
|
||||
{
|
||||
const unsigned int var_size = (profile->major_version >= 5 ? 10 : 6);
|
||||
size_t var_offset = vars_start + j * var_size * sizeof(uint32_t);
|
||||
size_t string_offset = put_string(&buffer, var->name);
|
||||
|
||||
string_offset = put_string(&buffer, var->name);
|
||||
set_u32(&buffer, var_offset, string_offset);
|
||||
write_sm4_type(ctx, &buffer, var->data_type);
|
||||
set_u32(&buffer, var_offset + 4 * sizeof(uint32_t), var->data_type->bytecode_offset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user