summaryrefslogtreecommitdiffstats
path: root/src/extras/postfx.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-18 10:27:55 +0100
committeraap <aap@papnet.eu>2020-11-18 10:27:55 +0100
commit82b0103c6789041b721b1de30746ce21a556ab4d (patch)
tree2312509d815997225ba4ad09b6f574918a8c06d2 /src/extras/postfx.cpp
parentMerge pull request #820 from withmorten/mission-switcher (diff)
downloadre3-82b0103c6789041b721b1de30746ce21a556ab4d.tar
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.gz
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.bz2
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.lz
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.xz
re3-82b0103c6789041b721b1de30746ce21a556ab4d.tar.zst
re3-82b0103c6789041b721b1de30746ce21a556ab4d.zip
Diffstat (limited to '')
-rw-r--r--src/extras/postfx.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/extras/postfx.cpp b/src/extras/postfx.cpp
index 6355dfb1..fe481658 100644
--- a/src/extras/postfx.cpp
+++ b/src/extras/postfx.cpp
@@ -150,13 +150,8 @@ CPostFX::Open(RwCamera *cam)
#ifdef RW_OPENGL
using namespace rw::gl3;
{
-#ifdef RW_GLES2
-#include "gl2_shaders/im2d_gl2.inc"
-#include "gl2_shaders/colourfilterIII_fs_gl2.inc"
-#else
-#include "shaders/im2d_gl3.inc"
-#include "shaders/colourfilterIII_fs_gl3.inc"
-#endif
+#include "shaders/im2d_gl.inc"
+#include "shaders/colourfilterIII_fs_gl.inc"
const char *vs[] = { shaderDecl, header_vert_src, im2d_vert_src, nil };
const char *fs[] = { shaderDecl, header_frag_src, colourfilterIII_frag_src, nil };
colourFilterIII = Shader::create(vs, fs);
@@ -164,17 +159,12 @@ CPostFX::Open(RwCamera *cam)
}
{
-#ifdef RW_GLES2
-#include "gl2_shaders/im2d_gl2.inc"
-#include "gl2_shaders/contrast_fs_gl2.inc"
-#else
-#include "shaders/im2d_gl3.inc"
-#include "shaders/contrast_fs_gl3.inc"
+#include "shaders/im2d_gl.inc"
+#include "shaders/contrast_fs_gl.inc"
const char *vs[] = { shaderDecl, header_vert_src, im2d_vert_src, nil };
const char *fs[] = { shaderDecl, header_frag_src, contrast_frag_src, nil };
contrast = Shader::create(vs, fs);
assert(contrast);
-#endif
}
#endif