OpenGL FBO Multiple textures
===

I have an FBO to which I attach two textures. Then I want to bind the FBO, use the first texture as input (bind) to a shader and write to the second texture, both are attached to the FBO. I tried this using glDrawBuffer to specify GL_COLOR_ATTACHMENT1 as draw buffer, but without success. Is this possible anyway?