FreeBSD Bugzilla – Attachment 143311 Details for
Bug 190308
emulators/higan crashes with GLX video output
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
GLX patch from byuu
higan-glx.patch (text/plain), 1.77 KB, created by
Naram Qashat
on 2014-06-03 03:44:09 UTC
(
hide
)
Description:
GLX patch from byuu
Filename:
MIME Type:
Creator:
Naram Qashat
Created:
2014-06-03 03:44:09 UTC
Size:
1.77 KB
patch
obsolete
>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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 190308
: 143311