X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=examples%2Fplugin%2Fteapot.c;h=1de1230fc52e1ff7bec6e41484276d990885df2d;hp=90ad2e265c7a8f3c294432b8d981327690d62775;hb=3431a57d2edcda77151d678ed10079c565d623aa;hpb=a0f0038cc0ae2eb6fa54c923d7d539a9a3296b7d diff --git a/examples/plugin/teapot.c b/examples/plugin/teapot.c index 90ad2e2..1de1230 100644 --- a/examples/plugin/teapot.c +++ b/examples/plugin/teapot.c @@ -59,7 +59,7 @@ static void expose(GritsCallback *callback, GritsOpenGL *opengl, gpointer _teapo glRotatef(teapot->rotation, 1, 1, 0); glColor4f(0.9, 0.9, 0.7, 1.0); glDisable(GL_CULL_FACE); - glutSolidTeapot(2.5); + glutSolidTeapot(0.5); } @@ -120,6 +120,8 @@ static void grits_plugin_teapot_dispose(GObject *gobject) static void grits_plugin_teapot_class_init(GritsPluginTeapotClass *klass) { g_debug("GritsPluginTeapot: class_init"); + int argc = 1; char *argv[] = {"", NULL}; + glutInit(&argc, argv); GObjectClass *gobject_class = (GObjectClass*)klass; gobject_class->dispose = grits_plugin_teapot_dispose; }