]> Pileus Git - grits/blobdiff - examples/plugin/teapot.c
Update teapot example
[grits] / examples / plugin / teapot.c
index 90ad2e265c7a8f3c294432b8d981327690d62775..1de1230fc52e1ff7bec6e41484276d990885df2d 100644 (file)
@@ -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;
 }