mesa: check if GL_ARB_copy_image is enabled in _mesa_CopyImageSubData()
authorBrian Paul <brianp@vmware.com>
Fri, 15 Aug 2014 13:40:47 +0000 (07:40 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Aug 2014 14:35:17 +0000 (08:35 -0600)
commitffb8e884f7c466c36cf64bf56ff63c52a833fa66
tree8d0a039daadc64be6cefce0ee333ead3f1efc566
parentaa9d4f9d1a01fbb829571dac1cf896a8288c7286
mesa: check if GL_ARB_copy_image is enabled in _mesa_CopyImageSubData()

Generate a GL error and return rather than crashing on a null
ctx->Driver.CopyImageSubData pointer (gallium).  This allows apitraces
with glCopyImageSubData() calls to continue rather than crash.

Plus, fix a comment typo.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/main/copyimage.c