Fix texture unit bug in the YUV video node.
authorYoann Lopes <yoann.lopes@theqtcompany.com>
Mon, 11 May 2015 16:33:05 +0000 (18:33 +0200)
committerYoann Lopes <yoann.lopes@theqtcompany.com>
Tue, 12 May 2015 10:19:21 +0000 (10:19 +0000)
commitab860d8b7f58bb68f102dfb3b3ee0b6488c811a1
treee5be6cab4685f66ef82a77e01c4968c71609f9cd
parent2463a5f216de1b1e71314414dc0d43214abe55db
Fix texture unit bug in the YUV video node.

fe13f5bb introduced a bug which could leave the active texture unit set
to GL_TEXTURE1 or GL_TEXTURE2. When the material is done updating its
state, it needs to make sure the active texture unit is reset to 0
since other materials might assume that's the current value.

Change-Id: I64a6a0cd9fcecdf0fa483909193f70045ff0e9fe
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
src/qtmultimediaquicktools/qsgvideonode_yuv.cpp