diff --git a/hui-glium/shaders/fragment.frag b/hui-glium/shaders/fragment.frag index a0e632e..eda6845 100644 --- a/hui-glium/shaders/fragment.frag +++ b/hui-glium/shaders/fragment.frag @@ -9,5 +9,10 @@ in vec2 vtx_uv; uniform sampler2D tex; void main() { + //HACK: if vtx_uv is (0, 0) then the texture is not used + if (vtx_uv.x == 0.0 && vtx_uv.y == 0.0) { + out_color = vtx_color; + return; + } out_color = texture(tex, vtx_uv) * vtx_color; }