aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-15 07:18:22 -0400
committerGitHub <noreply@github.com>2017-08-15 07:18:22 -0400
commitd2e796edb7256bb2e2b694a13c86e8bee7056309 (patch)
tree11bc14a473bdd501de890ee20189ce9e05327ed4 /render
parent5ca88af557178c0081fd408ae008686b79d6dd9c (diff)
parent7d0bf9a1a77420f09389bda1acafcd4bd42e82f1 (diff)
Merge pull request #86 from nyorain/master
Fix style issues
Diffstat (limited to 'render')
-rw-r--r--render/gles2/renderer.c5
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;
}