summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Shader.cpp
diff options
context:
space:
mode:
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