aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2020-12-14 17:21:55 +0100
committerRSDuck <rsduck@users.noreply.github.com>2020-12-14 17:21:55 +0100
commit659dc58d4d8290d8ef1930d9f21007c0ec4c3739 (patch)
tree2e460732e144b3b3512671ecf86050a238932778 /src
parentc106bec1a092763abd6c3b7f90a4b35c0ffe0a45 (diff)
fix segfault for build with OpenGL disabled
Diffstat (limited to 'src')
-rw-r--r--src/GPU3D.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp
index a02e286..7b30426 100644
--- a/src/GPU3D.cpp
+++ b/src/GPU3D.cpp
@@ -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;