From 7f68017f7926289235b565db59c05ea26a227916 Mon Sep 17 00:00:00 2001 From: funkydude Date: Sun, 11 Sep 2022 18:39:31 +0100 Subject: [PATCH] Fix bad usage of CreateTexture --- Core.lua | 2 +- Core_BCC.lua | 2 +- Core_Vanilla.lua | 2 +- Core_Wrath.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core.lua b/Core.lua index 7ac6efc..66ca1f4 100644 --- a/Core.lua +++ b/Core.lua @@ -759,7 +759,7 @@ function core:ADDON_LOADED(addon) frame:ClearAllPoints() frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4]) - local bg = frame:CreateTexture(nil, "PARENT") + local bg = frame:CreateTexture() bg:SetAllPoints(frame) bg:SetColorTexture(0, 1, 0, 0.3) frame.bg = bg diff --git a/Core_BCC.lua b/Core_BCC.lua index 863988e..96acf88 100644 --- a/Core_BCC.lua +++ b/Core_BCC.lua @@ -759,7 +759,7 @@ function core:ADDON_LOADED(addon) frame:ClearAllPoints() frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4]) - local bg = frame:CreateTexture(nil, "PARENT") + local bg = frame:CreateTexture() bg:SetAllPoints(frame) bg:SetColorTexture(0, 1, 0, 0.3) frame.bg = bg diff --git a/Core_Vanilla.lua b/Core_Vanilla.lua index 91bc1a8..91b59c6 100644 --- a/Core_Vanilla.lua +++ b/Core_Vanilla.lua @@ -753,7 +753,7 @@ function core:ADDON_LOADED(addon) frame:ClearAllPoints() frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4]) - local bg = frame:CreateTexture(nil, "PARENT") + local bg = frame:CreateTexture() bg:SetAllPoints(frame) bg:SetColorTexture(0, 1, 0, 0.3) frame.bg = bg diff --git a/Core_Wrath.lua b/Core_Wrath.lua index e11a4fe..399a788 100644 --- a/Core_Wrath.lua +++ b/Core_Wrath.lua @@ -759,7 +759,7 @@ function core:ADDON_LOADED(addon) frame:ClearAllPoints() frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4]) - local bg = frame:CreateTexture(nil, "PARENT") + local bg = frame:CreateTexture() bg:SetAllPoints(frame) bg:SetColorTexture(0, 1, 0, 0.3) frame.bg = bg