From 6c13195fdac56ff4ce46970f82a2979a2ae06c60 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Tue, 23 Jun 2020 11:22:24 +0200 Subject: [PATCH] Remove hbbtv changes - not needed --- openglosd.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/openglosd.cpp b/openglosd.cpp index edd8f77..547a9a3 100644 --- a/openglosd.cpp +++ b/openglosd.cpp @@ -83,12 +83,11 @@ uniform sampler2D screenTexture; \ \ void main() \ { \ - color = texture(screenTexture, TexCoords) * alphaValue; \ - if (color == vec4(0.0,0.0,0.0,1.0))\ - color.a = 0.0;\ + color = texture(screenTexture, TexCoords) * alphaValue; \ } \ "; + const char *textVertexShader = "%s\n \ \ layout (location = 0) in vec2 position; \ @@ -749,9 +748,6 @@ void cOglVb::SetShaderColor(GLint color) void cOglVb::SetShaderAlpha(GLint alpha) { - GLfloat a = (GLfloat) (alpha) / 255.0f; - if (a > 0.98) - a = 1.0; Shaders[shader]->SetVector4f("alpha", 1.0f, 1.0f, 1.0f, (GLfloat) (alpha) / 255.0f); } @@ -1277,7 +1273,7 @@ cOglCmdDrawText::cOglCmdDrawText(cOglFb * fb, GLint x, GLint y, unsigned int *sy this->x = x; this->y = y; this->limitX = limitX; - this->colorText = colorText & 0xfeffffff; + this->colorText = colorText; this->fontSize = fontSize; this->symbols = symbols; this->fontName = name;