aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-26 19:48:18 +0200
committerSimon Ser <contact@emersion.fr>2022-10-27 16:43:03 +0200
commitbc416ed7524381dd768a829e1a19a40d114a6123 (patch)
tree75590e037aaea181dc1a37ab58ba16b600ffd051 /render
parentf83b3809cf49b9c969d1fa6773dc827d51e028e2 (diff)
render/gles2: log error on shader compilation failure
Diffstat (limited to 'render')
-rw-r--r--render/gles2/renderer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index b1543cdd..aa1adabe 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -590,6 +590,7 @@ static GLuint compile_shader(struct wlr_gles2_renderer *renderer,
GLint ok;
glGetShaderiv(shader, GL_COMPILE_STATUS, &ok);
if (ok == GL_FALSE) {
+ wlr_log(WLR_ERROR, "Failed to compile shader");
glDeleteShader(shader);
shader = 0;
}
@@ -626,6 +627,7 @@ static GLuint link_program(struct wlr_gles2_renderer *renderer,
GLint ok;
glGetProgramiv(prog, GL_LINK_STATUS, &ok);
if (ok == GL_FALSE) {
+ wlr_log(WLR_ERROR, "Failed to link shader");
glDeleteProgram(prog);
goto error;
}