* FilterPostProcessor now crashes early if packed float texture isn't supported - since it is now required by all filters
This commit is contained in:
parent
0989d40256
commit
6680a1dec4
@ -137,6 +137,11 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
|
|||||||
fsQuad.setWidth(1);
|
fsQuad.setWidth(1);
|
||||||
fsQuad.setHeight(1);
|
fsQuad.setHeight(1);
|
||||||
|
|
||||||
|
if (!renderer.getCaps().contains(Caps.PackedFloatTexture)) {
|
||||||
|
throw new RendererException("FilterPostProcessor requires the " +
|
||||||
|
"video hardware to support packed float texture.");
|
||||||
|
}
|
||||||
|
|
||||||
Camera cam = vp.getCamera();
|
Camera cam = vp.getCamera();
|
||||||
|
|
||||||
//save view port diensions
|
//save view port diensions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user