fixes to sdl-opengl generator
removed commented out code
bug fixes