Update logs

This commit is contained in:
twinaphex 2017-03-24 01:28:58 +01:00
parent 755ceda4f9
commit 396857db9a
2 changed files with 9 additions and 9 deletions

View File

@ -168,7 +168,7 @@ static void gl_overlay_vertex_geom(void *data,
if (image > gl->overlays) if (image > gl->overlays)
{ {
RARCH_ERR("Invalid overlay id: %u\n", image); RARCH_ERR("[GL]: Invalid overlay id: %u\n", image);
return; return;
} }
@ -416,7 +416,7 @@ static bool gl_shader_init(gl_t *gl)
if (!gl) if (!gl)
{ {
RARCH_ERR("Invalid GL instance passed.\n"); RARCH_ERR("[GL]: Invalid GL instance passed.\n");
return false; return false;
} }
@ -1668,7 +1668,7 @@ static void gl_init_pbo_readback(gl_t *gl)
if (!scaler_ctx_gen_filter(scaler)) if (!scaler_ctx_gen_filter(scaler))
{ {
gl->pbo_readback_enable = false; gl->pbo_readback_enable = false;
RARCH_ERR("Failed to initialize pixel conversion for PBO.\n"); RARCH_ERR("[GL]: Failed to initialize pixel conversion for PBO.\n");
glDeleteBuffers(4, gl->pbo_readback); glDeleteBuffers(4, gl->pbo_readback);
} }
#endif #endif
@ -1836,7 +1836,7 @@ static void gl_begin_debug(gl_t *gl)
#endif #endif
} }
else else
RARCH_ERR("Neither GL_KHR_debug nor GL_ARB_debug_output are implemented. Cannot start GL debugging.\n"); RARCH_ERR("[GL]: Neither GL_KHR_debug nor GL_ARB_debug_output are implemented. Cannot start GL debugging.\n");
} }
#endif #endif

View File

@ -469,7 +469,7 @@ error:
glDeleteFramebuffers(gl->fbo_pass, gl->fbo); glDeleteFramebuffers(gl->fbo_pass, gl->fbo);
if (gl->fbo_feedback) if (gl->fbo_feedback)
glDeleteFramebuffers(1, &gl->fbo_feedback); glDeleteFramebuffers(1, &gl->fbo_feedback);
RARCH_ERR("Failed to set up frame buffer objects. Multi-pass shading will not work.\n"); RARCH_ERR("[GL]: Failed to set up frame buffer objects. Multi-pass shading will not work.\n");
return false; return false;
} }
@ -742,7 +742,7 @@ void gl_renderchain_init(gl_t *gl, unsigned fbo_width, unsigned fbo_height)
if (!gl_check_capability(GL_CAPS_FBO)) if (!gl_check_capability(GL_CAPS_FBO))
{ {
RARCH_ERR("Failed to locate FBO functions. Won't be able to use render-to-texture.\n"); RARCH_ERR("[GL]: Failed to locate FBO functions. Won't be able to use render-to-texture.\n");
return; return;
} }
@ -808,7 +808,7 @@ void gl_renderchain_init(gl_t *gl, unsigned fbo_width, unsigned fbo_height)
if (!gl_create_fbo_targets(gl)) if (!gl_create_fbo_targets(gl))
{ {
glDeleteTextures(gl->fbo_pass, gl->fbo_texture); glDeleteTextures(gl->fbo_pass, gl->fbo_texture);
RARCH_ERR("Failed to create FBO targets. Will continue without FBO.\n"); RARCH_ERR("[GL]: Failed to create FBO targets. Will continue without FBO.\n");
return; return;
} }
@ -966,12 +966,12 @@ bool gl_renderchain_add_lut(const struct video_shader *shader,
if (!image_texture_load(&img, shader->lut[i].path)) if (!image_texture_load(&img, shader->lut[i].path))
{ {
RARCH_ERR("Failed to load texture image from: \"%s\"\n", RARCH_ERR("[GL]: Failed to load texture image from: \"%s\"\n",
shader->lut[i].path); shader->lut[i].path);
return false; return false;
} }
RARCH_LOG("Loaded texture image from: \"%s\" ...\n", RARCH_LOG("[GL]: Loaded texture image from: \"%s\" ...\n",
shader->lut[i].path); shader->lut[i].path);
if (shader->lut[i].filter == RARCH_FILTER_NEAREST) if (shader->lut[i].filter == RARCH_FILTER_NEAREST)