summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-02-08 04:08:56 +0000
committerBrian Paul <[email protected]>2005-02-08 04:08:56 +0000
commit923b6fc4d96d342cdc7b33b660a8d3d193c9165e (patch)
treedfb2606be1b948837eaa43520ce7dd1988aa3108 /src/mesa/main
parent1864c7d79a0ef0bda54c503bad15977b62e0ed57 (diff)
just some comments
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/fbobject.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index c3858946d88..7b47a990351 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -36,6 +36,12 @@
#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) {