diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-15 07:18:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 07:18:22 -0400 |
commit | d2e796edb7256bb2e2b694a13c86e8bee7056309 (patch) | |
tree | 11bc14a473bdd501de890ee20189ce9e05327ed4 /render/gles2 | |
parent | 5ca88af557178c0081fd408ae008686b79d6dd9c (diff) | |
parent | 7d0bf9a1a77420f09389bda1acafcd4bd42e82f1 (diff) |
Merge pull request #86 from nyorain/master
Fix style issues
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 75a47187..e63787d8 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -101,8 +101,9 @@ error: } static void init_image_ext() { - if (glEGLImageTargetTexture2DOES) + if (glEGLImageTargetTexture2DOES) { return; + } const char *exts = (const char*) glGetString(GL_EXTENSIONS); if (strstr(exts, "GL_OES_EGL_image_external")) { @@ -177,7 +178,7 @@ static void draw_quad() { static bool wlr_gles2_render_texture(struct wlr_renderer *_renderer, struct wlr_texture *texture, const float (*matrix)[16]) { - if(!texture || !texture->valid) { + if (!texture || !texture->valid) { wlr_log(L_ERROR, "attempt to render invalid texture"); return false; } |