OGL: force enable postprocessing

This commit is contained in:
degasus
2014-10-18 09:32:24 +02:00
parent ce3a039eed
commit 7292ea6a04
7 changed files with 45 additions and 135 deletions

View File

@ -21,16 +21,15 @@ public:
OpenGLPostProcessing();
~OpenGLPostProcessing();
void BindTargetFramebuffer() override;
void BlitToScreen() override;
void Update(u32 width, u32 height) override;
void BlitFromTexture(TargetRectangle src, TargetRectangle dst,
int src_texture, int src_width, int src_height) override;
void ApplyShader() override;
private:
GLuint m_fbo;
GLuint m_texture;
bool m_initialized;
SHADER m_shader;
GLuint m_uniform_resolution;
GLuint m_uniform_src_rect;
GLuint m_uniform_time;
std::string m_glsl_header;