From fb67e0d20264e615545e3af2b9fa8e18eb50526e Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 31 Oct 2021 20:19:31 +0800 Subject: * shader compiler --- Runtime/Graphics/GfxDevice.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Runtime/Graphics/GfxDevice.cpp') diff --git a/Runtime/Graphics/GfxDevice.cpp b/Runtime/Graphics/GfxDevice.cpp index f318487..9abea12 100644 --- a/Runtime/Graphics/GfxDevice.cpp +++ b/Runtime/Graphics/GfxDevice.cpp @@ -78,11 +78,10 @@ void GfxDevice::UseShader(LuaBind::State& state, Shader* shader, int idx) glUseProgram(id); + shader->ExecuteCommand(); + m_Shader.shader = shader; m_Shader.ref.SetRef(state, idx); - - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } void GfxDevice::UnuseShader() -- cgit v1.1-26-g67d0