Fix OpenGL renderer crash with -skipintro command line parameter.

This commit is contained in:
Jaime Passos 2019-08-20 20:21:53 -03:00
parent eacc589ae1
commit 41d5ffa17f
1 changed files with 4 additions and 3 deletions

View File

@ -856,8 +856,8 @@ void V_DrawCroppedPatch(fixed_t x, fixed_t y, fixed_t pscale, INT32 scrn, patch_
return;
#ifdef HWRENDER
// Done
if (rendermode != render_soft && !con_startup)
//if (rendermode != render_soft && !con_startup) // Not this again
if (rendermode != render_soft)
{
HWR_DrawCroppedPatch((GLPatch_t*)patch,x,y,pscale,scrn,sx,sy,w,h);
return;
@ -1174,7 +1174,8 @@ void V_DrawFill(INT32 x, INT32 y, INT32 w, INT32 h, INT32 c)
return;
#ifdef HWRENDER
if (rendermode != render_soft && !con_startup)
//if (rendermode != render_soft && !con_startup) // Not this again
if (rendermode != render_soft)
{
HWR_DrawFill(x, y, w, h, c);
return;