diff options
-rw-r--r-- | src/mesa/state_tracker/st_manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 348b456c4d1..d910eec00a1 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -788,6 +788,9 @@ st_framebuffer_reuse_or_create(struct st_context *st, { struct st_framebuffer *cur = NULL, *stfb = NULL; + if (!stfbi) + return NULL; + /* Check if there is already a framebuffer object for the specified * framebuffer interface in this context. If there is one, use it. */ |