diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-20 17:54:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 17:54:33 -0400 |
commit | 33f2c66fca6e8a628fe3f36d1abacf87226042de (patch) | |
tree | 1381f243d1bb9df41691e2b92593a8495bb80f37 /render/gles3/renderer.c | |
parent | 2f03ea0a6bea6c099f148eb745a725ca77813885 (diff) | |
parent | b9d36c8149536cff1aa229f59337dcfa2f70a37b (diff) |
Merge pull request #17 from nyorain/wayland-backend
Basic Wayland backend
Diffstat (limited to 'render/gles3/renderer.c')
-rw-r--r-- | render/gles3/renderer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render/gles3/renderer.c b/render/gles3/renderer.c index b0056193..d029c0fb 100644 --- a/render/gles3/renderer.c +++ b/render/gles3/renderer.c @@ -71,6 +71,7 @@ static void init_default_shaders() { if (!compile_program(quad_vertex_src, ellipse_fragment_src, &shaders.ellipse)) { goto error; } + wlr_log(L_DEBUG, "Compiled default shaders"); return; error: wlr_log(L_ERROR, "Failed to set up default shaders!"); @@ -141,8 +142,10 @@ static bool wlr_gles3_render_surface(struct wlr_renderer_state *state, GL_CALL(glUseProgram(shaders.rgba)); break; default: + wlr_log(L_ERROR, "No shader for this surface format"); return false; } + gles3_flush_errors(); GL_CALL(glBindVertexArray(vao)); GL_CALL(glBindBuffer(GL_ARRAY_BUFFER, vbo)); GL_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo)); |