Skip to content

Commit aa9e8ca

Browse files
CrossVRYbalrid
authored andcommitted
Copy the struct, not the pointer to the struct
1 parent 90c7238 commit aa9e8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layer_bootstrap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ XrResult thisLayer_xrCreateApiLayerInstance(const XrInstanceCreateInfo* info, co
5252

5353
//Prepare to call this function down the layer chain
5454
XrApiLayerCreateInfo newApiLayerCreateInfo;
55-
memcpy(&newApiLayerCreateInfo, &apiLayerInfo, sizeof(newApiLayerCreateInfo));
55+
memcpy(&newApiLayerCreateInfo, apiLayerInfo, sizeof(newApiLayerCreateInfo));
5656
newApiLayerCreateInfo.nextInfo = apiLayerInfo->nextInfo->next;
5757

5858
XrInstanceCreateInfo instanceCreateInfo = *info;

0 commit comments

Comments
 (0)