From 07cd28226f4c2aba414ca62e356b4cd323c5f858 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 13 Jan 2025 20:44:07 -0500 Subject: [PATCH] update to latest --- code/sectr/shaders/ve_draw_text.shdc.glsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/sectr/shaders/ve_draw_text.shdc.glsl b/code/sectr/shaders/ve_draw_text.shdc.glsl index 0d0af9a..8edc9e1 100644 --- a/code/sectr/shaders/ve_draw_text.shdc.glsl +++ b/code/sectr/shaders/ve_draw_text.shdc.glsl @@ -10,7 +10,11 @@ out vec2 uv; void main() { - uv = vec2( v_texture.x, 1 - v_texture.y ); +#if SOKOL_GLSL + uv = vec2( v_texture.x, v_texture.y ); +#else + uv = vec2( v_texture.x, 1.0 - v_texture.y ); +#endif gl_Position = vec4( v_position * 2.0f - 1.0f, 0.0f, 1.0f ); } @end