diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-12-03 18:47:14 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-12-03 18:51:17 -0500 |
| commit | 93e85f9a7c655de44bf113eeff986efe422d15e5 (patch) | |
| tree | 6026e31a36545af40076db39a766c3bdbe4d0dd6 /Source/Core/VideoBackends/OGL/TextureConverter.cpp | |
| parent | 8bcc392d5d2285b2bf1c26942ecedcb0672e8bc4 (diff) | |
OGL/TextureConverter: Resolve -Wmissing-variable-declaration warnings
Diffstat (limited to 'Source/Core/VideoBackends/OGL/TextureConverter.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/TextureConverter.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/Core/VideoBackends/OGL/TextureConverter.cpp b/Source/Core/VideoBackends/OGL/TextureConverter.cpp index 88c46efc33..0b89ec2fdd 100644 --- a/Source/Core/VideoBackends/OGL/TextureConverter.cpp +++ b/Source/Core/VideoBackends/OGL/TextureConverter.cpp @@ -34,19 +34,22 @@ namespace TextureConverter { using OGL::TextureCache; -std::unique_ptr<AbstractTexture> s_encoding_render_texture; -std::unique_ptr<AbstractStagingTexture> s_encoding_readback_texture; - -const int renderBufferWidth = EFB_WIDTH * 4; -const int renderBufferHeight = 1024; - +namespace +{ struct EncodingProgram { SHADER program; GLint copy_position_uniform; GLint y_scale_uniform; }; -static std::map<EFBCopyParams, EncodingProgram> s_encoding_programs; + +std::map<EFBCopyParams, EncodingProgram> s_encoding_programs; +std::unique_ptr<AbstractTexture> s_encoding_render_texture; +std::unique_ptr<AbstractStagingTexture> s_encoding_readback_texture; + +const int renderBufferWidth = EFB_WIDTH * 4; +const int renderBufferHeight = 1024; +} static EncodingProgram& GetOrCreateEncodingShader(const EFBCopyParams& params) { |
