Ensure QOPENGLF_APIENTRY and QGLF_APIENTRY are set correctly.
authorJason Barron <jason.barron@digia.com>
Mon, 15 Oct 2012 11:28:29 +0000 (13:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 16 Oct 2012 00:47:46 +0000 (02:47 +0200)
commitc967c9ec7fee7270496bb2ee7c945e0b1f62f2f8
treec140378d1ab792cdf4a6c5925d99037438a963f9
parent3e095fcbf5534d868e39265e4bf87d2a2c258530
Ensure QOPENGLF_APIENTRY and QGLF_APIENTRY are set correctly.

gl2ext.h only defines GL_APIENTRY and not APIENTRY so we should use
this macro if it is available. Without it, code that uses
QOPENGLF_APIENTRY and QGLF_APIENTRY might experience compile errors
due to the differing signatures.

Task-number: QTBUG-27313
Change-Id: Id79d934825928d9913138edc6e8f1b00edc89a8d
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/gui/opengl/qopenglfunctions.h
src/opengl/qglfunctions.h