mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-02-16 08:51:50 +00:00
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:
parent
06c85581b6
commit
af4cabfd64
1 changed files with 5 additions and 1 deletions
|
@ -1972,8 +1972,12 @@ void TBXR_submitFrame()
|
||||||
|
|
||||||
if (usingScreenLayer) {
|
if (usingScreenLayer) {
|
||||||
usingScreenLayer = qfalse;
|
usingScreenLayer = qfalse;
|
||||||
|
float configuredSuperSampling = Cvar_VariableValue("vr_super_sampling");
|
||||||
|
if (configuredSuperSampling != 0.0f && configuredSuperSampling != superSampling)
|
||||||
|
{
|
||||||
VR_ResetRenderer();
|
VR_ResetRenderer();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue