Framework.createSurface() should fail if exact surface options not valid

Issue #37 resolved
Michael Ludwig
repo owner created an issue

The main reason is that people will assume things about the surface, for example a shadowmap TextureSurface will have a non-null depth buffer.

If this isn't supported, a NPE would be thrown at some later point and would be difficult to debug.