forked from joejulian/gio
3d3ff575e3
d3d11Context.Present would return a nil error if the underlying error d3d11.ErrorCode. While here, use defer for a resource cleanup. Signed-off-by: Elias Naur <mail@eliasnaur.com>