st/wgl: check for hPbuffer=0 in wgl pbuffer functions
authorBrian Paul <brianp@vmware.com>
Thu, 16 Feb 2012 19:20:57 +0000 (12:20 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Feb 2012 14:49:08 +0000 (07:49 -0700)
commitbe05388ce983face72ca17241f0f2e154c11f435
treeea67b62b7c73fa88a9bb90fb8c05fb2110985822
parent9ffc8ea8f4cfa15115a93039cc7099f0fd597fe3
st/wgl: check for hPbuffer=0 in wgl pbuffer functions

Per the GL_WGL_pbuffer spec, generate ERROR_INVALID_HANDLE and
return FALSE (and don't segfault).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/wgl/stw_ext_pbuffer.c