From ab576f18594ef75e64fda140a866659b691c08a0 Mon Sep 17 00:00:00 2001 From: Rinnegatamante Date: Mon, 26 Oct 2020 11:54:51 +0100 Subject: [PATCH] Minor cleanup. --- src/gl/gl3device.cpp | 3 +-- src/gl/rwgl3.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gl/gl3device.cpp b/src/gl/gl3device.cpp index b09d07a..524872c 100644 --- a/src/gl/gl3device.cpp +++ b/src/gl/gl3device.cpp @@ -1365,12 +1365,11 @@ openGLFW(EngineOpenParams *openparams) gConstIndices[i] = i; } #ifdef PSP2_USE_SHADER_COMPILER - vglInitExtended(0x10000, 960, 544, 0x100000, SCE_GXM_MULTISAMPLE_4X); vglSetupRuntimeShaderCompiler(SHARK_OPT_UNSAFE, SHARK_ENABLE, SHARK_ENABLE, SHARK_ENABLE); #else vglEnableRuntimeShaderCompiler(GL_FALSE); - vglInitExtended(0x10000, 960, 544, 0x100000, SCE_GXM_MULTISAMPLE_4X); #endif + vglInitExtended(0x10000, 960, 544, 0x100000, SCE_GXM_MULTISAMPLE_4X); vglUseVram(GL_TRUE); makeVideoModeList(); diff --git a/src/gl/rwgl3.h b/src/gl/rwgl3.h index 1661119..4b29024 100644 --- a/src/gl/rwgl3.h +++ b/src/gl/rwgl3.h @@ -7,6 +7,7 @@ #ifdef PSP2 #include #include +#ifndef PSP2_USE_SHADER_COMPILER #include "shaders/default_v.h" #include "shaders/im3d_v.h" #include "shaders/im2d_v.h" @@ -14,6 +15,7 @@ #include "shaders/matfx_env_v.h" #include "shaders/matfx_env_f.h" #include "shaders/simple_f.h" +#endif #else #ifndef LIBRW_GLAD #include