summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/GfxDevice.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-31 20:19:31 +0800
committerchai <chaifix@163.com>2021-10-31 20:19:31 +0800
commitfb67e0d20264e615545e3af2b9fa8e18eb50526e (patch)
tree236f3cdad56ccfa41f04f4b7443cbbd037ed6b48 /Runtime/Graphics/GfxDevice.cpp
parent9e0ad4279c8ccf2f419694e4ca15a1372e8b20d6 (diff)
* shader compiler
Diffstat (limited to 'Runtime/Graphics/GfxDevice.cpp')
-rw-r--r--Runtime/Graphics/GfxDevice.cpp5
1 files changed, 2 insertions, 3 deletions
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()