* commit '01ff3d6fde685193955874643d26ec4e799aa3a8': fix DimLayer in GLES2.0 SF
This commit is contained in:
commit
64ca284d91
@ -116,7 +116,11 @@ void GLES20RenderEngine::setupLayerBlending(
|
||||
}
|
||||
|
||||
void GLES20RenderEngine::setupDimLayerBlending(int alpha) {
|
||||
mState.setPlaneAlpha(alpha / 255.0f);
|
||||
mState.setPlaneAlpha(1.0f);
|
||||
mState.setPremultipliedAlpha(true);
|
||||
mState.setOpaque(false);
|
||||
mState.setColor(0, 0, 0, alpha/255.0f);
|
||||
mState.disableTexture();
|
||||
|
||||
if (alpha == 0xFF) {
|
||||
glDisable(GL_BLEND);
|
||||
@ -124,7 +128,6 @@ void GLES20RenderEngine::setupDimLayerBlending(int alpha) {
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||
}
|
||||
disableTexturing();
|
||||
}
|
||||
|
||||
void GLES20RenderEngine::setupLayerTexturing(const Texture& texture) {
|
||||
|
Loading…
Reference in New Issue
Block a user