summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Shader.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-01 09:50:03 +0800
committerchai <chaifix@163.com>2021-11-01 09:50:03 +0800
commit8078aeed4e62c6b3aa48102554044768b402570c (patch)
tree45928c5b35df5dd3f952ccb789c84b7986743b26 /Runtime/Graphics/Shader.cpp
parent20577019253d0b2938fbf0057eed0bda72556e82 (diff)
*misc
Diffstat (limited to 'Runtime/Graphics/Shader.cpp')
-rw-r--r--Runtime/Graphics/Shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Runtime/Graphics/Shader.cpp b/Runtime/Graphics/Shader.cpp
index 4b4c9e0..60e165f 100644
--- a/Runtime/Graphics/Shader.cpp
+++ b/Runtime/Graphics/Shader.cpp
@@ -75,7 +75,7 @@ void Shader::CompileProgram(const char* vert, const char* frag, bool keepSrc)
const char* fragCode = frag;
// vertex shader
m_VertID = glCreateShader(GL_VERTEX_SHADER);
- glShaderSource(m_VertID, 1, &vertCode, NULL);
+ glShaderSource(m_VertID, 1, &vertCode, NULL);//为了支持中文注释,长度传NULL
glCompileShader(m_VertID);
checkCompileshaderErrorors(m_VertID, "VERTEX");
// fragment Shader