]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/glcanvas.cpp
regenerated
[wxWidgets.git] / src / gtk1 / glcanvas.cpp
index 5cd38dcbbe496332e65366d6a08e7986ee1d4d1c..92871b73f4ad09c366f784d5e01310c9cbe1b912 100644 (file)
@@ -297,19 +297,18 @@ bool wxGLCanvas::Create( wxWindow *parent,
         // default settings if attriblist = 0
         data[0] = GLX_RGBA;
         data[1] = GLX_DOUBLEBUFFER;
-        data[2] = GLX_DOUBLEBUFFER;
-        data[3] = GLX_DEPTH_SIZE;   data[4] = 1;
-        data[5] = GLX_RED_SIZE;     data[6] = 1;
-        data[7] = GLX_GREEN_SIZE;   data[8] = 1;
-        data[9] = GLX_BLUE_SIZE;    data[10] = 1;
-        data[11] = GLX_ALPHA_SIZE;  data[12] = 0;
-        data[13] = None;
+        data[2] = GLX_DEPTH_SIZE;   data[3] = 1;
+        data[4] = GLX_RED_SIZE;     data[5] = 1;
+        data[6] = GLX_GREEN_SIZE;   data[7] = 1;
+        data[8] = GLX_BLUE_SIZE;    data[9] = 1;
+        data[10] = GLX_ALPHA_SIZE;  data[11] = 0;
+        data[12] = None;
 
        attribList = (int*) data;
     }
     else
     {
-      int data[512], arg=0, p=0;
+      int arg=0, p=0;
        
       while( (attribList[arg]!=0) && (p<510) )
       {