708c58
Fix OpenGL assert failures (e.g. using preview feature). Based on patch by @Teiji-Matsusaka. Fixes #434. Possibly addresses #2704, too.