mesa: raise an error when trying to bind non-existant texture to FBO
authorBrian Paul <brianp@vmware.com>
Wed, 10 Mar 2010 17:54:24 +0000 (10:54 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 10 Mar 2010 17:54:29 +0000 (10:54 -0700)
commit7a2e32d68494b82813ea6a07bb62d1c21202cad1
tree46e13ee4b6b01bad20b12817257257c70444305b
parentb318039e9a790d9d90bd524c79af2d9a444d0093
mesa: raise an error when trying to bind non-existant texture to FBO

If the user calls glRenderBufferTexture(texture=N) but texture N
doesn't name an existing texture, raise GL_INVALID_ENUM.

Plus, add a comment about some questionable error checking code in
framebuffer_texture().  Ian?
src/mesa/main/fbobject.c