diff options
author | Timothy Arceri <t_arceri@yahoo.com.au> | 2015-10-04 11:46:18 +1100 |
---|---|---|
committer | Timothy Arceri <t_arceri@yahoo.com.au> | 2015-10-04 23:51:02 +1100 |
commit | ed25c94e8a28e1336ea5561a25b96addf8ed8ee4 (patch) | |
tree | 28f905b4e135c7ea30b6cab2ff2cd72bf9747332 /tests | |
parent | 83b82104a679480a9ffac54b71446641a801174d (diff) |
arb_shader_atomic_counters: add error output if uniform not found
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/arb_shader_atomic_counters/array-indexing.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/spec/arb_shader_atomic_counters/array-indexing.c b/tests/spec/arb_shader_atomic_counters/array-indexing.c index 030ab581c..2c69fd0b2 100644 --- a/tests/spec/arb_shader_atomic_counters/array-indexing.c +++ b/tests/spec/arb_shader_atomic_counters/array-indexing.c @@ -19,7 +19,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. - */ + / /** @file array-indexing.c * @@ -48,8 +48,11 @@ set_uniform_int(GLuint prog, const char *name, int value) glUseProgram(prog); loc = glGetUniformLocation(prog, name); - if (loc < 0) + if (loc < 0) { + fprintf(stderr, "Failed to get location for uniform '%s'.\n", + name); return false; + } glUniform1i(loc, value); |