Fix drawWithSdlGlRetained for SDL2 bindings