Update to this code: http://fog-framework.blogspot.com/2010/04/using-fog-in-within-sdl.html