Skip to content

r_drawworld 0 fails (fix) #107

@Baker7

Description

@Baker7

r_drawworld 0 sometimes does not work ...

cl_screen.c

	// if CSQC is loaded, it is required to provide the CSQC_UpdateView function,
	// and won't render a view if it does not call that.
	if (cl.csqc_loaded) {
		CL_VM_UpdateView(r_stereo_side ? 0.0 : max(0.0, cl.time - cl.oldtime));
	}
	else
	{
		cl.csqc_vidvars.drawworld = r_drawworld.integer != 0; // Baker: this line missing

		// Prepare the scene mesh for rendering - this is lightning beams and other effects rendered as normal surfaces
		CL_MeshEntities_Scene_FinalizeRenderEntity();

		CL_UpdateEntityShading();
		R_RenderView(0, NULL, NULL, r_refdef.view.x, r_refdef.view.y, r_refdef.view.width, r_refdef.view.height);
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions