Small anti-console-spam improvement.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@804 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
14697e2c5b
commit
23dc0e4b01
1 changed files with 7 additions and 8 deletions
|
@ -1630,13 +1630,18 @@ void GLR_RenderView (void)
|
||||||
extern msurface_t *r_alpha_surfaces;
|
extern msurface_t *r_alpha_surfaces;
|
||||||
double time1 = 0, time2;
|
double time1 = 0, time2;
|
||||||
|
|
||||||
if (r_norefresh.value)
|
if (r_norefresh.value || !glwidth || !glheight)
|
||||||
|
{
|
||||||
|
GL_DoSwap();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(r_refdef.flags & 1))
|
if (!(r_refdef.flags & 1))
|
||||||
if (!r_worldentity.model || !cl.worldmodel)
|
if (!r_worldentity.model || !cl.worldmodel)
|
||||||
|
{
|
||||||
|
GL_DoSwap();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
// Sys_Error ("R_RenderView: NULL worldmodel");
|
// Sys_Error ("R_RenderView: NULL worldmodel");
|
||||||
|
|
||||||
|
|
||||||
|
@ -1764,12 +1769,6 @@ void GLR_RenderView (void)
|
||||||
float vwidth = 1, vheight = 1;
|
float vwidth = 1, vheight = 1;
|
||||||
float vs, vt;
|
float vs, vt;
|
||||||
|
|
||||||
if (!glwidth || !glheight)
|
|
||||||
{
|
|
||||||
Con_Printf("Window too small!!!\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// get the powers of 2 for the size of the texture that will hold the scene
|
// get the powers of 2 for the size of the texture that will hold the scene
|
||||||
while (vwidth < glwidth)
|
while (vwidth < glwidth)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue