mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-12 16:17:44 -10:00
Fix alpha blend mode for APNGs and in scripts
Apaprently the alpha blend behavior has been broken for a long time and alpha blending was always enabled. I changed the default lua opacity type to match this behavior so that older scripts don't get broken by this.
This commit is contained in:
1 parent
8dbea5eeb8
commit
032d6a15a9
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -3712,7 +3712,7 @@ ade_obj<int> l_Texture("texture", "Texture handle");
|
||||
//WMC - int should NEVER EVER be an invalid handle. Return Nil instead. Nil FTW.
|
||||
|
||||
static float lua_Opacity = 1.0f;
|
||||
static int lua_Opacity_type = GR_ALPHABLEND_NONE;
|
||||
static int lua_Opacity_type = GR_ALPHABLEND_FILTER;
|
||||
|
||||
ADE_FUNC(__gc, l_Texture, NULL, "Auto-deletes texture", NULL, NULL)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user