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:
asarium committed 2016-09-11 09:48:03 +02:00
1 parent 8dbea5eeb8
commit 032d6a15a9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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)
{