aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Drawable.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-09 07:54:18 +0800
committerchai <chaifix@163.com>2018-10-09 07:54:18 +0800
commit07496396f15b91d27948a408fe36d8416380a407 (patch)
tree14441d9e49c9eb97eeb5ea5bfff69eb3bf28fcd2 /src/libjin/Graphics/Drawable.cpp
parent4620c40753ad540042a53a35f8d3725dbd6af5c6 (diff)
*修改base shader内建变量
Diffstat (limited to 'src/libjin/Graphics/Drawable.cpp')
-rw-r--r--src/libjin/Graphics/Drawable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libjin/Graphics/Drawable.cpp b/src/libjin/Graphics/Drawable.cpp
index abe2dc8..77c3750 100644
--- a/src/libjin/Graphics/Drawable.cpp
+++ b/src/libjin/Graphics/Drawable.cpp
@@ -43,8 +43,8 @@ namespace graphics
gl.ModelMatrix.setTransformation(x, y, r, sx, sy, anchor.x, anchor.y);
Shader* shader = Shader::getCurrentShader();
- shader->sendMatrix4(Shader::SHADER_MODEL_MATRIX, &gl.ModelMatrix);
- shader->sendMatrix4(Shader::SHADER_PROJECTION_MATRIX, &gl.ProjectionMatrix);
+ shader->sendMatrix4(SHADER_MODEL_MATRIX, &gl.ModelMatrix);
+ shader->sendMatrix4(SHADER_PROJECTION_MATRIX, &gl.ProjectionMatrix);
shader->bindVertexPointer(2, GL_FLOAT, 0, vertex_coords);
shader->bindUVPointer(2, GL_FLOAT, 0, texture_coords);