On 07/28/2017 03:28 PM, Jose Fonseca wrote:
On Windows, OpenGL entrypoints need to be declared with APIENTRY qualifier to get the right calling convention. Using the piglit dispactch typedefs makes this even easier. --- tests/perf/drawoverhead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)diff --git a/tests/perf/drawoverhead.c b/tests/perf/drawoverhead.c index 429375f2d..2bc04fabf 100644 --- a/tests/perf/drawoverhead.c +++ b/tests/perf/drawoverhead.c @@ -521,8 +521,8 @@ static void draw_state_change(unsigned count) { unsigned i; - void (*enable)(GLenum) = glEnable; - void (*disable)(GLenum) = glDisable; + PFNGLENABLEPROC enable = glEnable; + PFNGLDISABLEPROC disable = glDisable; GLenum glenum = enable_enum; if (is_compat && enable_enum == GL_PRIMITIVE_RESTART) {
Reviewed-by: Brian Paul <[email protected]> _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
