diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-05-19 13:04:56 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-05-19 15:14:46 +0300 |
commit | 3527739002407ac9b1698beb1cde58b0077e3b78 (patch) | |
tree | 385632f7ac4c1ddf549bde6369643cc4c3ba002c /source/blender/editors/space_view3d/drawmesh.c | |
parent | 60fc04fb9b4f112998ac42395a17b56cc6edec5c (diff) |
Remove reference to SUPPORT_LEGACY_MATRIX
Since the change to core profile this is no longer supported.
Diffstat (limited to 'source/blender/editors/space_view3d/drawmesh.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawmesh.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c index 701efab0bd0..8db377c3061 100644 --- a/source/blender/editors/space_view3d/drawmesh.c +++ b/source/blender/editors/space_view3d/drawmesh.c @@ -1085,22 +1085,12 @@ static void tex_mat_set_texture_cb(void *userData, int mat_nr, void *attribs) int bindcode = (ima) ? GPU_verify_image(ima, iuser, GL_TEXTURE_2D, 0, 0, mipmap, false) : 0; if (bindcode) { - NodeTexBase *texbase = node->storage; - /* disable existing material */ GPU_object_material_unbind(); /* bind texture */ glBindTexture(GL_TEXTURE_2D, ima->bindcode[TEXTARGET_TEXTURE_2D]); -#if SUPPORT_LEGACY_MATRIX - glMatrixMode(GL_TEXTURE); - glLoadMatrixf((float*) texbase->tex_mapping.mat); /* TEXTURE */ - glMatrixMode(GL_MODELVIEW); -#else - (void)texbase; -#endif - /* use active UV texture layer */ memset(gattribs, 0, sizeof(*gattribs)); |