[Piglit] [PATCH 07/15] Add a call to glewInit() to windowoverlap.c
Paul Berry
stereotype441 at gmail.com
Fri Mar 2 15:40:25 PST 2012
Previously this test didn't initialize GLEW, presumably because it
only uses GL 1.0 functions, and those functions bypass GLEW. But once
we switch to using piglit-dispatch instead of GLEW, we will need to
initialize it in order for any GL functions to work. This patch adds
a call to glewInit() in the place where a call to
piglit_dispatch_default_init() will eventually be needed.
---
tests/general/windowoverlap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/general/windowoverlap.c b/tests/general/windowoverlap.c
index 47b6d95..e0a8f47 100644
--- a/tests/general/windowoverlap.c
+++ b/tests/general/windowoverlap.c
@@ -181,6 +181,7 @@ int main(int argc, char *argv[])
glutInitWindowSize(MainWidth, MainHeight);
glutInitDisplayMode(GLUT_RGB);
glutCreateWindow(argv[0]);
+ glewInit();
glutReshapeFunc(Reshape);
glutDisplayFunc(RedisplayMain);
if (!Automatic)
--
1.7.7.6
More information about the Piglit
mailing list