avoid warnings in the test program of package gtkglext

This commit is contained in:
Volker Grabsch 2010-05-14 11:36:52 +02:00
parent 19eb277866
commit 21efdea5cb
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@ static gboolean eventExpose(GtkWidget *gl, GdkEventExpose *e, gpointer userData)
GdkGLContext *ctx = gtk_widget_get_gl_context(gl);
GdkGLDrawable *drawable = gtk_widget_get_gl_drawable(gl);
(void)e;
(void)userData;
gdk_gl_drawable_gl_begin(drawable, ctx);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@ -29,6 +32,9 @@ static gboolean eventConfigure(GtkWidget *gl, GdkEventConfigure *e, gpointer use
const guint width = gl->allocation.width;
const guint height = gl->allocation.height;
(void)e;
(void)userData;
glLoadIdentity();
glViewport(0, 0, width, height);
glOrtho(-3.5, 3.5, -3.5 * (GLfloat)height / (GLfloat)width,