diff options
author | aap <aap@papnet.eu> | 2020-11-18 10:32:18 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-11-18 10:32:18 +0100 |
commit | 8c70c2a136d6412e27550c1c2584d972f9d9812a (patch) | |
tree | 0776cacdebdfe418bb4712836cd72d2c9fb5c837 /src/extras/postfx.cpp | |
parent | Merge pull request #821 from aap/miami (diff) | |
download | re3-8c70c2a136d6412e27550c1c2584d972f9d9812a.tar re3-8c70c2a136d6412e27550c1c2584d972f9d9812a.tar.gz re3-8c70c2a136d6412e27550c1c2584d972f9d9812a.tar.bz2 re3-8c70c2a136d6412e27550c1c2584d972f9d9812a.tar.lz re3-8c70c2a136d6412e27550c1c2584d972f9d9812a.tar.xz re3-8c70c2a136d6412e27550c1c2584d972f9d9812a.tar.zst re3-8c70c2a136d6412e27550c1c2584d972f9d9812a.zip |
Diffstat (limited to 'src/extras/postfx.cpp')
-rw-r--r-- | src/extras/postfx.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/extras/postfx.cpp b/src/extras/postfx.cpp index 7e9df4e7..f7b120a8 100644 --- a/src/extras/postfx.cpp +++ b/src/extras/postfx.cpp @@ -152,13 +152,8 @@ CPostFX::Open(RwCamera *cam) using namespace rw::gl3; { -#ifdef RW_GLES2 -#include "gl2_shaders/im2d_gl2.inc" -#include "gl2_shaders/colourfilterVC_fs_gl2.inc" -#else -#include "shaders/im2d_gl3.inc" -#include "shaders/colourfilterVC_fs_gl3.inc" -#endif +#include "shaders/im2d_gl.inc" +#include "shaders/colourfilterVC_fs_gl.inc" const char *vs[] = { shaderDecl, header_vert_src, im2d_vert_src, nil }; const char *fs[] = { shaderDecl, header_frag_src, colourfilterVC_frag_src, nil }; colourFilterVC = Shader::create(vs, fs); @@ -166,17 +161,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 |