stw/wgl: add null context check in wglBindTexImageARB()
authorBrian Paul <brianp@vmware.com>
Mon, 10 Oct 2016 21:54:09 +0000 (15:54 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 31 Mar 2017 19:30:53 +0000 (13:30 -0600)
commit7753f040facc89de4dacc33f9407a4fa334bf58c
treed38c44157279ef0d862c377615e4cc9d898dc701
parent7d2fa8dc105158e7d2d28763cb9ed020ae64b67f
stw/wgl: add null context check in wglBindTexImageARB()

To avoid dereferencing a null pointer in case wglMakeCurrent() wasn't
called.  Found while debugging SWKOTOR game.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/state_trackers/wgl/stw_ext_rendertexture.c