   how to use glSelectBuffer
  hello guys, i'm tring to render water with reflection, so i need to render the scene on a texture first to do the reflection scene. but the question is how to use glSelectBuffer cause every time i run the program, i got the error of stack overflaw. i think that i must be wrong somewhere.here is the code:GLuint bmp[1024*768*3];glColor4ub(255,255,255,255);glSelectBuffer(1024*768*3,bmp);glRenderMode(GL_SELECT);btw, how to specify the size of the buffer? cause the glSelectBuffer function does not specify the color format like rgba or rgb.thanks   
  whats the select buffer got to do with tring to render water with reflection??;  render the current scene in to a texture and project to the water sufface to do the reflection   ;  try to use glReadBuffer/glCopyTexture to copy the buffer   ;  there seems to be no such function as glCopyTexture?i find this function on the article about render to texture in a nvidia article but i just can not use it? why   ;  Why not use the stencil buffer?   ;  glSelectBuffer has nothing to do with RGB/RGBA/bmp. Nothing is actually rendered in Selection Mode. Check the docs.   