1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Direct3D 12: Enhance management of texture data life cycle

This commit is contained in:
Pedro J. Estébanez
2024-02-16 22:43:32 +01:00
parent 6f805dee2a
commit d47021ac6c
3 changed files with 145 additions and 83 deletions

View File

@@ -106,7 +106,7 @@ struct VersatileResourceTemplate {
template <class T>
static T *allocate(PagedAllocator<VersatileResourceTemplate> &p_allocator) {
T *obj = (T *)p_allocator.alloc();
*obj = T();
memnew_placement(obj, T);
return obj;
}