aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/texture.c
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-08-10 11:05:18 +0200
committernyorain <nyorain@gmail.com>2017-08-10 11:05:18 +0200
commit073dff63da7ef3ea744dddedbe7c59fec799372e (patch)
treee4cb62887fcfea79c2514a57d510a77ccdfc6100 /render/gles2/texture.c
parent1901c3e1b64cff3440b0b3b27ad9db06645a29e6 (diff)
Fix style issues
Diffstat (limited to 'render/gles2/texture.c')
-rw-r--r--render/gles2/texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/gles2/texture.c b/render/gles2/texture.c
index 17c41957..b7de65be 100644
--- a/render/gles2/texture.c
+++ b/render/gles2/texture.c
@@ -22,8 +22,9 @@ static struct pixel_format external_pixel_format = {
};
static void gles2_texture_gen_texture(struct wlr_texture_state *surface) {
- if (surface->tex_id)
+ if (surface->tex_id) {
return;
+ }
GL_CALL(glGenTextures(1, &surface->tex_id));
GL_CALL(glBindTexture(GL_TEXTURE_2D, surface->tex_id));