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:
Yuxuan Shui 2020-04-20 19:05:58 +01:00
parent 701eb0a2f3
commit 754531ea2e
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }
/** /**