glsl: fix debugging of tex coordinate in apitrace

This commit is contained in:
Gregory Hainaut 2015-04-19 18:41:28 +02:00
parent 31f8c065db
commit 6d253c0b8f
2 changed files with 6 additions and 0 deletions

View File

@ -280,6 +280,9 @@ vec4 sample_color(vec2 st, float q)
}
#ifdef TEX_COORD_DEBUG
c[0].rg = uv.xy;
c[1].rg = uv.xy;
c[2].rg = uv.xy;
c[3].rg = uv.xy;
#endif
}

View File

@ -1029,6 +1029,9 @@ static const char* tfx_fs_all_glsl =
" }\n"
"#ifdef TEX_COORD_DEBUG\n"
" c[0].rg = uv.xy;\n"
" c[1].rg = uv.xy;\n"
" c[2].rg = uv.xy;\n"
" c[3].rg = uv.xy;\n"
"#endif\n"
" }\n"
"\n"