mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +00:00
[qfcc] Record type id for block types
I had initially thought I'd need to duplicate types for block members, but that was before I did the higher-level type branching, and then I forgot to record the type for block members. Fixes the duplicate types on structs in blocks, and thus a type mismatch validation error in partphysics.comp.
This commit is contained in:
parent
70bfa64333
commit
feca36bf59
1 changed files with 1 additions and 0 deletions
|
@ -595,6 +595,7 @@ spirv_BlockType (const type_t *type, int *size, int *align, spirvctx_t *ctx)
|
||||||
// struct or union, but union not allowed
|
// struct or union, but union not allowed
|
||||||
id = spirv_struct (type, size, align, ctx);
|
id = spirv_struct (type, size, align, ctx);
|
||||||
}
|
}
|
||||||
|
spirv_add_type_id (type, id, ctx);
|
||||||
return id;
|
return id;
|
||||||
} else {
|
} else {
|
||||||
// non-aggregate, non-matrix type, so no need for special handling
|
// non-aggregate, non-matrix type, so no need for special handling
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue