mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user