Skip to content

Commit

Permalink
Merge branch 'next' into stable/10
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui committed Nov 11, 2022
2 parents 037c72f + 7d0d693 commit 5d15015
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/gl/gl_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,8 @@ void *gl_shadow_from_mask(backend_t *base, void *mask,
auto source_texture = gl_new_texture(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, source_texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, new_inner->width, new_inner->height, 0,
GL_RED, GL_UNSIGNED_BYTE, NULL);
glBindTexture(GL_TEXTURE_2D, 0);
Expand Down

0 comments on commit 5d15015

Please sign in to comment.