opengl: clear fbcfg in free_paint_glx
So we don't reuse the old, freed fbcfg across reset. Related: #381 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
701eb0a2f3
commit
754531ea2e
|
@ -196,6 +196,7 @@ static inline void free_texture(session_t *ps, glx_texture_t **pptex) {
|
||||||
*/
|
*/
|
||||||
static inline void free_paint_glx(session_t *ps, paint_t *ppaint) {
|
static inline void free_paint_glx(session_t *ps, paint_t *ppaint) {
|
||||||
free_texture(ps, &ppaint->ptex);
|
free_texture(ps, &ppaint->ptex);
|
||||||
|
ppaint->fbcfg = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue