Fixed segfault in SDL 2.0 UI when trying to put render pixels to window surface