Fix missing intro movies on Quest

This commit is contained in:
Simon 2023-08-12 15:25:36 +01:00
parent ca40a99ec1
commit d28bd8aa9c

View file

@ -1982,6 +1982,7 @@ void TBXR_submitFrame()
} }
else else
{ {
#ifdef _WIN32
//Empty black projection for now //Empty black projection for now
memset(&projection_layer, 0, sizeof(XrCompositionLayerProjection)); memset(&projection_layer, 0, sizeof(XrCompositionLayerProjection));
projection_layer.type = XR_TYPE_COMPOSITION_LAYER_PROJECTION; projection_layer.type = XR_TYPE_COMPOSITION_LAYER_PROJECTION;
@ -2003,7 +2004,7 @@ void TBXR_submitFrame()
// Compose the layers for this frame. // Compose the layers for this frame.
layers[layerCount++] = (const XrCompositionLayerBaseHeader*)&projection_layer; layers[layerCount++] = (const XrCompositionLayerBaseHeader*)&projection_layer;
#endif
memset(&quad_layer, 0, sizeof(XrCompositionLayerQuad)); memset(&quad_layer, 0, sizeof(XrCompositionLayerQuad));
// Build the quad layers // Build the quad layers