mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
OGL/TextureConverter: Resolve -Wmissing-variable-declaration warnings
This commit is contained in:
parent
8bcc392d5d
commit
93e85f9a7c
1 changed files with 10 additions and 7 deletions
|
@ -34,19 +34,22 @@ namespace TextureConverter
|
||||||
{
|
{
|
||||||
using OGL::TextureCache;
|
using OGL::TextureCache;
|
||||||
|
|
||||||
std::unique_ptr<AbstractTexture> s_encoding_render_texture;
|
namespace
|
||||||
std::unique_ptr<AbstractStagingTexture> s_encoding_readback_texture;
|
{
|
||||||
|
|
||||||
const int renderBufferWidth = EFB_WIDTH * 4;
|
|
||||||
const int renderBufferHeight = 1024;
|
|
||||||
|
|
||||||
struct EncodingProgram
|
struct EncodingProgram
|
||||||
{
|
{
|
||||||
SHADER program;
|
SHADER program;
|
||||||
GLint copy_position_uniform;
|
GLint copy_position_uniform;
|
||||||
GLint y_scale_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)
|
static EncodingProgram& GetOrCreateEncodingShader(const EFBCopyParams& params)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue