mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:10:06 +00:00
Set OpenGL blend mode for placefile transparency
This commit is contained in:
parent
ec946b71f4
commit
6e42001281
1 changed files with 3 additions and 0 deletions
|
|
@ -205,6 +205,9 @@ void PlacefileLayer::Render(
|
|||
{
|
||||
gl::OpenGLFunctions& gl = context()->gl();
|
||||
|
||||
// Set OpenGL blend mode for transparency
|
||||
gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
// Reset text ID per frame
|
||||
p->textId_ = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue