~random-stuff/mupen64plus/mupen64plus-video-gliden64

« back to all changes in this revision

Viewing changes to src/Graphics/OpenGLContext/GLSL/glsl_ShaderStorage.h

  • Committer: Sergey Lipskiy
  • Date: 2019-06-19 12:02:52 UTC
  • Revision ID: git-v1:2d712f2ae0482d7da3b49397902551addd676107
Rewrite textures loading and mapping:
- use RiceVideo method for texture size calculation.
  RiceVideo uses the same method for texture dumping.
- rewrite texture mapping.
  Texture Clamp-Wrap-Mirror implemented in shaders.

Problem explanation:
https://github.com/gonetz/GLideN64/issues/1885#issuecomment-485136358

Fixed various glitches with HD textures, #1885

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
                bool _saveCombinerKeys(const graphics::Combiners & _combiners) const;
21
21
                bool _loadFromCombinerKeys(graphics::Combiners & _combiners);
22
22
 
23
 
                const u32 m_formatVersion = 0x26U;
 
23
                const u32 m_formatVersion = 0x28U;
24
24
                const u32 m_keysFormatVersion = 0x04;
25
25
                const opengl::GLInfo & m_glinfo;
26
26
                opengl::CachedUseProgram * m_useProgram;