浏览代码

D3D12 fix

luboslenco 1 月之前
父节点
当前提交
4f8d37e245
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      base/sources/backends/direct3d12_gpu.c

+ 1 - 0
base/sources/backends/direct3d12_gpu.c

@@ -803,6 +803,7 @@ void gpu_texture_init_from_bytes(gpu_texture_t *texture, void *data, int width,
 	texture->format = format;
 	texture->state = GPU_TEXTURE_STATE_SHADER_RESOURCE;
 	texture->buffer = NULL;
+	texture->impl.rtv_descriptor_heap = NULL;
 	DXGI_FORMAT dxgi_format = convert_format(format);
 	int format_size = gpu_texture_format_size(format);