summaryrefslogtreecommitdiffstats
path: root/platform_methods.py
diff options
context:
space:
mode:
authorAlistair Leslie-Hughes <leslie_alistair@hotmail.com>2023-11-16 06:43:33 +1100
committerAlistair Leslie-Hughes <leslie_alistair@hotmail.com>2023-11-16 11:02:12 +1100
commit367079ffeea3f417901bc6b022908a5cb4483479 (patch)
tree088ab3b56bc9b0badc891a09ce640af674f04f21 /platform_methods.py
parent56a2b143a2d8868fdbaba798b7b0145516397f48 (diff)
downloadredot-engine-367079ffeea3f417901bc6b022908a5cb4483479.tar.gz
Renderer Viewport correct sizeof usage.
The current usage. In viewport_find_from_screen_attachment - Allocates a list of pointers, eg sizeof(RID*) * ridcount. We need fill that buffer viewport_owner.fill_owned_buffer(rids); ... p_rid_buffer[idx] = _make_from_id((validator << 32) | i); _make_from_id returns an RID object, not a pointer. Since there isn't a copy constructor, a bitwise copy of the object occurs. This issue will only present itself under 32bit builds. sizeof(RID) : 8 sizeof(RID*) : 4 whereas 64bit builds they are both 8.
Diffstat (limited to 'platform_methods.py')
0 files changed, 0 insertions, 0 deletions