diff options
author | RSDuck <rsduck@users.noreply.github.com> | 2020-09-30 23:58:42 +0200 |
---|---|---|
committer | RSDuck <rsduck@users.noreply.github.com> | 2020-10-01 00:01:05 +0200 |
commit | 697730240394cd9fedcf7924f29ffa625fc784fd (patch) | |
tree | 561943f062c9b9a194c66fadad37b175a509b149 /src/GPU3D.cpp | |
parent | 4b705556bcd3eabaff608ab06b24765472745c21 (diff) |
make OpenGL renderer a build option
mostly meant for the Switch port
Diffstat (limited to 'src/GPU3D.cpp')
-rw-r--r-- | src/GPU3D.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 5ccacf4..74debfe 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -2528,13 +2528,19 @@ void VBlank() void VCount215() { if (GPU::Renderer == 0) SoftRenderer::RenderFrame(); +#ifdef OGLRENDERER_ENABLED else GLRenderer::RenderFrame(); +#endif } u32* GetLine(int line) { if (GPU::Renderer == 0) return SoftRenderer::GetLine(line); +#ifdef OGLRENDERER_ENABLED else return GLRenderer::GetLine(line); +#else + return NULL; +#endif } |