Minor optimization of openGL alpha blending for Qt GUI.
This commit is contained in:
parent
0287395bee
commit
971d7212ee
|
@ -274,7 +274,8 @@ void ConsoleViewGL_t::buildTextures(void)
|
|||
}
|
||||
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glBlendFunc(GL_ONE, GL_ONE);
|
||||
//glBlendFunc(GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
//printf("Texture Built: %ix%i\n", w, h);
|
||||
}
|
||||
|
||||
|
@ -670,7 +671,8 @@ void ConsoleViewGL_t::paintGL(void)
|
|||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glBlendFunc(GL_ONE, GL_ONE);
|
||||
//glBlendFunc(GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
if ( textureType == GL_TEXTURE_RECTANGLE )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue