Remove reference semantics, still not deleted properly
Check for buffer mapping support on OpenGL ES
Debug logger, crash at closing window