diff options
author | emersion <contact@emersion.fr> | 2018-03-30 19:13:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 19:13:07 -0400 |
commit | c4666918fade3f99fa7718852ebdfa0c35863cb8 (patch) | |
tree | 77ef86de91d8f939cc7f7b032ab2e65c62d4cdef | |
parent | 212d957c69b15e57a791eec52de34dcde4241e86 (diff) | |
parent | c9ed6fed59bb297d1393fdca790ae433bc6f09f9 (diff) |
Merge pull request #782 from orestisf1993/fix-build
Fix build error with -O2
-rw-r--r-- | render/gles2/renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index f96f468b..8f3ce7f7 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -111,8 +111,8 @@ static bool gles2_render_texture_with_matrix(struct wlr_renderer *wlr_renderer, struct wlr_gles2_texture *texture = gles2_get_texture_in_context(wlr_texture); - GLuint prog; - GLenum target; + GLuint prog = 0; + GLenum target = 0; switch (texture->type) { case WLR_GLES2_TEXTURE_GLTEX: case WLR_GLES2_TEXTURE_WL_DRM_GL: |