[Piglit] [PATCH] drawoverhead: Fix Windows builds.
Jose Fonseca
jfonseca at vmware.com
Fri Jul 28 21:28:28 UTC 2017
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) {
--
2.11.0
More information about the Piglit
mailing list