Fix white screen issue

something to do with the renderer being destroyed every time you transition from screen view to game view
This commit is contained in:
Simon 2023-12-21 21:43:06 +00:00
parent 06c85581b6
commit af4cabfd64

View file

@ -1972,7 +1972,11 @@ void TBXR_submitFrame()
if (usingScreenLayer) { if (usingScreenLayer) {
usingScreenLayer = qfalse; usingScreenLayer = qfalse;
VR_ResetRenderer(); float configuredSuperSampling = Cvar_VariableValue("vr_super_sampling");
if (configuredSuperSampling != 0.0f && configuredSuperSampling != superSampling)
{
VR_ResetRenderer();
}
} }
memset(&projection_layer, 0, sizeof(XrCompositionLayerProjection)); memset(&projection_layer, 0, sizeof(XrCompositionLayerProjection));