Remove hbbtv changes - not needed

This commit is contained in:
jojo61 2020-06-23 11:22:24 +02:00
parent 6a31404aa0
commit 6c13195fda
1 changed files with 3 additions and 7 deletions

View File

@ -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;