projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
st/mesa: handle stfbi being NULL on entry of st_framebuffer_reuse_or_create
[mesa.git]
/
src
/
mesa
/
state_tracker
/
st_manager.c
diff --git
a/src/mesa/state_tracker/st_manager.c
b/src/mesa/state_tracker/st_manager.c
index 348b456c4d1d733fed7f9a7f1c0188f094ccb693..d910eec00a1651228246ed60aff63cf37c7b8053 100644
(file)
--- 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.
*/