[client] egl: provide the texture scale to the desktop shader

If the texture has a post-processing filter that has scaled the texture,
the desktop fragment shader needs to know this if it's doing linear
scaling.
This commit is contained in:
Geoffrey McRae
2021-08-09 18:22:28 +10:00
parent f7f8060447
commit 6882e5c59f
4 changed files with 23 additions and 6 deletions

View File

@@ -144,6 +144,7 @@ struct EGL_Texture
_Atomic(bool) updated;
bool postProcessed;
EGL_Model * model;
float scale;
};
bool egl_textureInit(EGL * egl, EGL_Texture ** texture, EGLDisplay * display,
@@ -168,3 +169,5 @@ enum EGL_TexStatus egl_textureBind(EGL_Texture * texture);
enum EGL_TexStatus egl_textureAddShader(EGL_Texture * texture,
EGL_Shader * shader, float outputScale);
float egl_textureGetScale(EGL_Texture * texture);