Index: files/patch-ruby__video__glx.cpp =================================================================== --- files/patch-ruby__video__glx.cpp (revision 0) +++ files/patch-ruby__video__glx.cpp (working copy) @@ -0,0 +1,31 @@ +--- ./ruby/video/glx.cpp.orig 2014-01-20 01:37:14.000000000 -0500 ++++ ./ruby/video/glx.cpp 2014-06-02 23:32:39.000000000 -0400 +@@ -128,6 +128,28 @@ + //require GLX 1.2+ API + if(glx.version_major < 1 || (glx.version_major == 1 && glx.version_minor < 2)) return false; + ++ int major, minor; ++ const char *version = (const char *) glGetString (GL_VERSION); ++ const char *dot = version == NULL ? NULL : strchr (version, '.'); ++ const char *major_start = dot; ++ ++ /* Sanity check */ ++ if (dot == NULL || dot == version || *(dot + 1) == '\0') { ++ major = 0; ++ minor = 0; ++ } else { ++ /* Find the start of the major version in the string */ ++ while (major_start > version && *major_start != ' ') ++ --major_start; ++ major = strtol (major_start, NULL, 10); ++ minor = strtol (dot + 1, NULL, 0); ++ } ++ ++ if(major < 3 || (major == 3 && minor < 2)) { ++ printf("Error: OpenGL 3.2 is not available. Select another video driver on the Advanced Configuration tab and restart higan.\n"); ++ return false; ++ } ++ + XWindowAttributes window_attributes; + XGetWindowAttributes(display, settings.handle, &window_attributes); + Property changes on: files/patch-ruby__video__glx.cpp ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property