Minor optimization in ResampleEffect: Set less GL state.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Sep 2015 22:10:48 +0000 (00:10 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Sep 2015 22:10:48 +0000 (00:10 +0200)
commitc2ca57b71bf77244acc85aaccb2d6c360517c5a3
tree8ae20e374cc426151b368191a037e83de25d5f2d
parent82071a94aaff95d2d29d077338085a8fb27e76d1
Minor optimization in ResampleEffect: Set less GL state.

In particular, if we can avoid it, use glTexSubImage2D instead of glTexImage2D.
This actually has a real effect, at least on Intel/Linux, where the drive seems
to stall on some mappings.

Of course, this only really helps for things like pans, not zooms.
resample_effect.cpp
resample_effect.h