kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #06991
kicad-gal crash
Torsten,
This patch is like what we are using in KiCad for opengl and it seems to be
needed on one machine I have.
Without it the opengl window does not draw anything and crashes on first
mouse move over that window when running test_gal.
If I have time I was going to show test_gal at the conference next Sunday.
Dick
=== modified file 'gal/opengl/opengl_gal.cpp'
--- gal/opengl/opengl_gal.cpp 2011-03-05 21:37:36 +0000
+++ gal/opengl/opengl_gal.cpp 2011-10-03 04:39:00 +0000
@@ -37,8 +37,12 @@
// FIXME Checking of attributes
#if defined(__WXGTK__)
-const static int glAttributes[2] =
-{ WX_GL_DOUBLEBUFFER, 0};
+//const static int glAttributes[2] = { WX_GL_DOUBLEBUFFER, 0};
+
+int glAttributes[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, WX_GL_DEPTH_SIZE, 16, 0 };
+
+
+
#endif
#if defined(__WXMSW__)
Follow ups