mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-01 05:38:25 +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:
@@ -339,6 +339,7 @@ enum EGL_TexStatus egl_textureAddShader(EGL_Texture * this, EGL_Shader * shader,
|
||||
glGenTextures(1, &step->tex);
|
||||
step->shader = shader;
|
||||
step->scale = outputScale;
|
||||
this->scale = outputScale;
|
||||
|
||||
if (this->formatValid)
|
||||
if (!setupRenderStep(this, step))
|
||||
@@ -351,3 +352,8 @@ enum EGL_TexStatus egl_textureAddShader(EGL_Texture * this, EGL_Shader * shader,
|
||||
ll_push(this->render, step);
|
||||
return EGL_TEX_STATUS_OK;
|
||||
}
|
||||
|
||||
float egl_textureGetScale(EGL_Texture * this)
|
||||
{
|
||||
return this->scale;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user