fix segfault for build with OpenGL disabled

This commit is contained in:
RSDuck 2020-12-14 17:21:55 +01:00
parent c106bec1a0
commit 659dc58d4d
1 changed files with 1 additions and 3 deletions

View File

@ -2579,13 +2579,11 @@ u32 ScrolledLine[256];
u32* GetLine(int line)
{
u32* rawline;
u32* rawline = NULL;
if (GPU::Renderer == 0) rawline = SoftRenderer::GetLine(line);
#ifdef OGLRENDERER_ENABLED
else rawline = GLRenderer::GetLine(line);
#else
return NULL;
#endif
if (RenderXPos == 0) return rawline;