summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/spec/arb_shader_atomic_counters/array-indexing.c7
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);