Fix shaders in some immBindBuiltinProgram calls

Had mistakenly used 3D shaders for some 2D drawings...
Replaced those now.

Part of T49043
This commit is contained in:
2017-02-02 23:17:22 -02:00
parent d85295534b
commit b1b5ded37f
3 changed files with 5 additions and 5 deletions

View File

@@ -249,7 +249,7 @@ void drawSnapping(const struct bContext *C, TransInfo *t)
unsigned pos = add_attrib(immVertexFormat(), "pos", GL_FLOAT, 2, KEEP_FLOAT);
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
for (p = t->tsnap.points.first; p; p = p->next) {
if (p == t->tsnap.selectedPoint) {