aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_manager.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-12 15:47:35 +0000
committermarha <marha@users.sourceforge.net>2011-02-12 15:47:35 +0000
commit026b85e62b3d8812afb5f04df29aeac28c52b331 (patch)
tree04f14c936311a1852769eb5005dbaa25bb2dc244 /mesalib/src/mesa/state_tracker/st_manager.c
parent183968dd18dc91f73325980bd511ed6bdb38b432 (diff)
downloadvcxsrv-026b85e62b3d8812afb5f04df29aeac28c52b331.tar.gz
vcxsrv-026b85e62b3d8812afb5f04df29aeac28c52b331.tar.bz2
vcxsrv-026b85e62b3d8812afb5f04df29aeac28c52b331.zip
xkeyboard-config pixman xkbcompt mesa git update 12 Feb 2011
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_manager.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_manager.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_manager.c b/mesalib/src/mesa/state_tracker/st_manager.c
index 3b54eb7b8..5684e9768 100644
--- a/mesalib/src/mesa/state_tracker/st_manager.c
+++ b/mesalib/src/mesa/state_tracker/st_manager.c
@@ -426,19 +426,13 @@ st_framebuffer_create(struct st_framebuffer_iface *stfbi)
struct gl_config mode;
gl_buffer_index idx;
+ if (!stfbi)
+ return NULL;
+
stfb = CALLOC_STRUCT(st_framebuffer);
if (!stfb)
return NULL;
- /* for FBO-only context */
- if (!stfbi) {
- struct gl_framebuffer *base = _mesa_get_incomplete_framebuffer();
-
- stfb->Base = *base;
-
- return stfb;
- }
-
st_visual_to_context_mode(stfbi->visual, &mode);
_mesa_initialize_window_framebuffer(&stfb->Base, &mode);
@@ -764,7 +758,8 @@ st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi,
ret = _mesa_make_current(st->ctx, &stdraw->Base, &stread->Base);
}
else {
- ret = FALSE;
+ struct gl_framebuffer *incomplete = _mesa_get_incomplete_framebuffer();
+ ret = _mesa_make_current(st->ctx, incomplete, incomplete);
}
st_framebuffer_reference(&stdraw, NULL);