glx: Fix use-before-null-check in dri2InvalidateBuffers().
authorEric Anholt <eric@anholt.net>
Wed, 1 Jun 2011 20:39:39 +0000 (13:39 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 3 Jun 2011 23:03:34 +0000 (16:03 -0700)
commit164108e3db5ba09d8e0605f88aa17dab83b68742
tree011e8477fd69071123934bda52f94b0b7b68b2f1
parent836a595594a5500945c5d97d6f63c245ebbe34a8
glx: Fix use-before-null-check in dri2InvalidateBuffers().

The compiler used our dereference here to skip the NULL check below.
Fixes window resize in "jconsole -J-Dsun.java2d.opengl=True" under
OpenJDK 6.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37766
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri2_glx.c