Skip to content

Commit

Permalink
use shader version constant
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 13, 2023
1 parent c13ec65 commit 15bce9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xpra/client/gl/shaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ def gen_NV12_to_RGB(cs="bt601"):
"""


VERTEX_SHADER = """
#version 330 core
VERTEX_SHADER = f"""
#version {GLSL_VERSION}
layout(location=0) in vec4 position;
void main()
{
{{
gl_Position = vec4(position.x, position.y, 1, 1);
}
}}
"""


Expand Down

0 comments on commit 15bce9d

Please sign in to comment.