From 011a0ece0edc45ceb94b1723350afc502eff25ff Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Thu, 6 Oct 2011 12:12:51 -0700 Subject: [PATCH] Bug 692548 - Properly print OGL Shader compile errors on Android. r=jmuizelaar --- gfx/layers/opengl/LayerManagerOGLProgram.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gfx/layers/opengl/LayerManagerOGLProgram.h b/gfx/layers/opengl/LayerManagerOGLProgram.h index c25179b0f23..9f142577bd4 100644 --- a/gfx/layers/opengl/LayerManagerOGLProgram.h +++ b/gfx/layers/opengl/LayerManagerOGLProgram.h @@ -247,14 +247,14 @@ protected: log.SetLength(len); if (!success) { - fprintf (stderr, "=== SHADER COMPILATION FAILED ===\n"); + printf_stderr("=== SHADER COMPILATION FAILED ===\n"); } else { - fprintf (stderr, "=== SHADER COMPILATION WARNINGS ===\n"); + printf_stderr("=== SHADER COMPILATION WARNINGS ===\n"); } - fprintf (stderr, "=== Source:\n%s\n", aShaderSource); - fprintf (stderr, "=== Log:\n%s\n", log.get()); - fprintf (stderr, "============\n"); + printf_stderr("=== Source:\n%s\n", aShaderSource); + printf_stderr("=== Log:\n%s\n", log.get()); + printf_stderr("============\n"); if (!success) { mGL->fDeleteShader(sh); @@ -303,12 +303,12 @@ protected: log.SetLength(len); if (!success) { - fprintf (stderr, "=== PROGRAM LINKING FAILED ===\n"); + printf_stderr("=== PROGRAM LINKING FAILED ===\n"); } else { - fprintf (stderr, "=== PROGRAM LINKING WARNINGS ===\n"); + printf_stderr("=== PROGRAM LINKING WARNINGS ===\n"); } - fprintf (stderr, "=== Log:\n%s\n", log.get()); - fprintf (stderr, "============\n"); + printf_stderr("=== Log:\n%s\n", log.get()); + printf_stderr("============\n"); } // We can mark the shaders for deletion; they're attached to the program