Bug 692548 - Properly print OGL Shader compile errors on Android. r=jmuizelaar

This commit is contained in:
Benoit Girard 2011-10-06 12:12:51 -07:00
Родитель 1c744a5928
Коммит 011a0ece0e
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -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