Fixed a bug with shaders not restoring the currently bound texture.