Bug 973257. GL: Fix broken printf string. r=vlad
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Sat, 15 Feb 2014 23:44:05 -0500
changeset 169065 45be254398b380eea34cca0b8174efa5134820e2
parent 169064 0ba53f973ce708a9f5a992229b96205fb2bae7b9
child 169066 343913e3297a91bce6be8117fe25a26c3ec6e872
push id26229
push userphilringnalda@gmail.com
push dateSun, 16 Feb 2014 16:48:09 +0000
treeherdermozilla-central@2bddbd180d2d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvlad
bugs973257
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 973257. GL: Fix broken printf string. r=vlad
gfx/gl/GLBlitTextureImageHelper.cpp
--- a/gfx/gl/GLBlitTextureImageHelper.cpp
+++ b/gfx/gl/GLBlitTextureImageHelper.cpp
@@ -240,17 +240,17 @@ GLBlitTextureImageHelper::UseBlitProgram
 
         if (!success) {
             nsAutoCString log;
             mGL->fGetShaderiv(shaders[i], LOCAL_GL_INFO_LOG_LENGTH, (GLint*) &len);
             log.SetCapacity(len);
             mGL->fGetShaderInfoLog(shaders[i], len, (GLint*) &len, (char*) log.BeginWriting());
             log.SetLength(len);
 
-            printf_stderr("Shader %d compilation failed:\n%s\n", log.get());
+            printf_stderr("Shader %d compilation failed:\n%s\n", i, log.get());
             return;
         }
 
         mGL->fAttachShader(mBlitProgram, shaders[i]);
         mGL->fDeleteShader(shaders[i]);
     }
 
     mGL->fBindAttribLocation(mBlitProgram, 0, "aVertex");