$NetBSD: patch-ab,v 1.1 2004/12/02 01:47:35 taca Exp $

--- ogl.c.orig	Sun Jul 18 00:26:38 2004
+++ ogl.c
@@ -2162,14 +2162,14 @@ VALUE obj,arg1,arg2,arg3,arg4,arg5,arg6;
     int format;
     int type;
     VALUE pixels;
+    int type_size;
+    int format_size;
     x = (GLint)NUM2INT(arg1);
     y = (GLint)NUM2INT(arg2);
     width = (GLsizei)NUM2INT(arg3);
     height = (GLsizei)NUM2INT(arg4);
     format = NUM2INT(arg5);
     type = NUM2INT(arg6);
-    int type_size;
-    int format_size;
     if (format != -1 && type != -1) {
 	type_size = gltype_size(type) / 8;
 	format_size = glformat_size(format);
