Fix style issues

This commit is contained in:
nyorain 2017-08-14 17:09:56 +02:00
parent 53052b3f6e
commit f998bb8299
14 changed files with 36 additions and 18 deletions

View file

@ -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;
}