Skip to content

Commit

Permalink
opengl: clear fbcfg in free_paint_glx
Browse files Browse the repository at this point in the history
So we don't reuse the old, freed fbcfg across reset.

Related: yshui#381

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Apr 20, 2020
1 parent 701eb0a commit 754531e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/opengl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
free_texture(ps, &ppaint->ptex);
ppaint->fbcfg = NULL;
}

/**
Expand Down

0 comments on commit 754531e

Please sign in to comment.