mesa: don't crash in KHR_no_error uniform variants when location == -1
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 13 May 2017 05:53:08 +0000 (15:53 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 16 May 2017 01:53:16 +0000 (11:53 +1000)
commitf25b2f76b031f2427f97a4a4fc58f4d237b764b4
treee265897ab0ac5c4c5ba7b68bc5d40757405f4a48
parentb1af896853569ba9bb85189bf094efeeb8c01ce2
mesa: don't crash in KHR_no_error uniform variants when location == -1

From Seciton 7.6 (UNIFORM VARIABLES) of the OpenGL 4.5 spec:

  "If the value of location is -1, the Uniform* commands will
  silently ignore the data passed in, and the current uniform values
  will not be changed.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/uniform_query.cpp