mesa: check constant before null check
authorTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 21 May 2014 11:26:16 +0000 (21:26 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 21 May 2014 20:52:03 +0000 (06:52 +1000)
commit5a40a0008961ff3172f78d1a61bf3516680100e1
treeabcf2952468a8205eba3fa5c28b5c12f2e39192f
parentb81de5352dc8f3db01888175561b816c0d92716b
mesa: check constant before null check

For most drivers this if statement is always going to fail so check the constant value first.

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_exec_array.c