mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-10 19:30:56 +00:00
[qfcc] Get block member offsets working again
And now vulkan accepts all my shaders (though it does moan a little about my alias_shadow vertex shader not using all inputs).
This commit is contained in:
parent
4ec6df385b
commit
46094e536e
1 changed files with 3 additions and 0 deletions
|
@ -201,6 +201,9 @@ glsl_block_type (const type_t *type, const char *pre_tag)
|
|||
sym->id = s->id;
|
||||
sym->attributes = s->attributes;
|
||||
symtab_addsymbol (nt->symtab, sym);
|
||||
if (s->offset >= 0 && type->symtab->type == stab_block) {
|
||||
offset = s->offset;
|
||||
}
|
||||
if (type_align (ftype) > alignment) {
|
||||
alignment = type_align (ftype);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue