freebsd-ports/graphics/g3dviewer/files/patch-src-glarea.c
Ying-Chieh Liao 8444ee3dde - Fix build on 4-stable
- Avoid installing arch-dependent loadable modules under PREFIX/share

PR:		83856
Submitted by:	Ports Fury
2005-07-22 03:42:50 +00:00

19 lines
662 B
C

--- src/glarea.c.orig Wed Jul 13 05:18:12 2005
+++ src/glarea.c Wed Jul 20 02:34:25 2005
@@ -55,6 +55,7 @@
#ifdef HAVE_GTKGLEXT
GdkGLDrawable *gldrawable;
GdkGLContext *glcontext;
+ G3DModel *model;
gldrawable = gtk_widget_get_gl_drawable(widget);
glcontext = gtk_widget_get_gl_context(widget);
@@ -64,7 +65,7 @@
if(gtk_gl_area_make_current(GTK_GL_AREA(widget)))
{
#endif
- G3DModel *model = (G3DModel*)gtk_object_get_data(GTK_OBJECT(widget),
+ model = (G3DModel*)gtk_object_get_data(GTK_OBJECT(widget),
"model");
glViewport(0,0, widget->allocation.width, widget->allocation.height);
model->aspect = (float)widget->allocation.width /