just some comments
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 8 Feb 2005 04:08:56 +0000 (04:08 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 8 Feb 2005 04:08:56 +0000 (04:08 +0000)
src/mesa/main/fbobject.c

index c3858946d88c38870276bc920cba1c27713d9ecb..7b47a9903512a5eefb2ca2aec58f3957a0a113ac 100644 (file)
 #include "texstore.h"
 
 
+/*
+ * When glGenRender/FramebuffersEXT() is called we insert pointers to
+ * these placeholder objects into the hash table.
+ * Later, when the object ID is first bound, we replace the placeholder
+ * with the real frame/renderbuffer.
+ */
 static struct gl_frame_buffer_object DummyFramebuffer;
 static struct gl_render_buffer_object DummyRenderbuffer;
 
@@ -526,6 +532,7 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer)
    if (framebuffer) {
       newFb = lookup_framebuffer(ctx, framebuffer);
       if (newFb == &DummyFramebuffer) {
+         /* ID was reserved, but no real framebuffer object made yet */
          newFb = NULL;
       }
       if (!newFb) {