wineopexr: Don't consider XrCompositionLayerColorScaleBiasKHR in convert_XrCompositionLayer().

This structure is not inherited from XrCompositionLayerBaseHeader but
is supposed to be passed as chained structure with a layer.
This commit is contained in:
Paul Gofman 2021-02-26 14:44:29 +03:00 committed by Andrew Eikum
parent e70629c08d
commit 0a4a8b7a01

View File

@ -42,7 +42,6 @@ union CompositionLayer {
XrCompositionLayerDepthInfoKHR depth_info;
XrCompositionLayerCylinderKHR cylinder;
XrCompositionLayerEquirectKHR equirect;
XrCompositionLayerColorScaleBiasKHR color_scale_bias;
XrCompositionLayerEquirect2KHR equirect2;
};
@ -1489,10 +1488,6 @@ static XrCompositionLayerBaseHeader *convert_XrCompositionLayer(wine_XrSession *
out_layer->quad.subImage.swapchain = ((wine_XrSwapchain *)out_layer->quad.subImage.swapchain)->swapchain;
break;
case XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR:
/* no conversion needed */
return (XrCompositionLayerBaseHeader *)in_layer;
default:
WINE_WARN("Unknown composition in_layer type: %d\n", in_layer->type);
return (XrCompositionLayerBaseHeader *)in_layer;