Fix non-rendering TA and cinematics

This commit is contained in:
Simon 2022-04-03 00:20:22 +01:00
parent 326ddd1764
commit 443a3657f2
3 changed files with 4 additions and 13 deletions

View file

@ -430,6 +430,8 @@ void RE_BeginFrame( stereoFrame_t stereoFrame ) {
}
tr.refdef.stereoFrame = stereoFrame;
GLSL_PrepareUniformBuffers();
}

View file

@ -207,19 +207,8 @@ static void GLSL_ViewMatricesUniformBuffer(const float value[32]) {
{
case HUD_ORTHO_PROJECTION:
{
if (vr.virtual_screen)
{
vec3_t translate;
VectorSet(translate, -10, 0, 0);
Mat4Translation( translate, viewMatrices );
VectorSet(translate, 10, 0, 0);
Mat4Translation( translate, viewMatrices + 16 );
}
else
{
Mat4Identity( viewMatrices );
Mat4Identity( viewMatrices + 16 );
}
Mat4Identity( viewMatrices );
Mat4Identity( viewMatrices + 16 );
}
break;
default: