Sorry to dredge up this old topic, but the FBO code matches mine almost verbatim. My problem is coming in with the rendering afterward though. I've followed SO many different shadow mapping tutorials, I think I'm lost.
I have the FBO generated no problem (I'm pretty sure), but am trying to draw the shadow mapping now without shaders. Does anyone have some code or a tutorial I could look at to help with this? It's driving me crazy. I'm currently working on the 3-pass method, but I'll take whatever I can get.