svn commit: r435580 - head/emulators/dosbox/files
Alexander Kabaev
kan at FreeBSD.org
Tue Mar 7 03:13:35 UTC 2017
Author: kan (src committer)
Date: Tue Mar 7 03:13:33 2017
New Revision: 435580
URL: https://svnweb.freebsd.org/changeset/ports/435580
Log:
Fix build on FreeBSD-current with Clang 4.0.
Approved by: Tom Carrick (maintainer)
Added:
head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp (contents, props changed)
Added: head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/dosbox/files/patch-src_gui_sdlmain.cpp Tue Mar 7 03:13:33 2017 (r435580)
@@ -0,0 +1,25 @@
+*** src/gui/sdlmain.cpp.orig Mon Mar 6 03:02:24 2017
+--- src/gui/sdlmain.cpp Mon Mar 6 03:03:21 2017
+***************
+*** 1134,1143 ****
+ #endif
+ const char * gl_ext = (const char *)glGetString (GL_EXTENSIONS);
+ if(gl_ext && *gl_ext){
+! sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") > 0);
+! sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") > 0);
+ #if defined(NVIDIA_PixelDataRange)
+! sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") >0 ) &&
+ glPixelDataRangeNV && db_glAllocateMemoryNV && db_glFreeMemoryNV;
+ sdl.opengl.pixel_data_range = 0;
+ #endif
+--- 1134,1143 ----
+ #endif
+ const char * gl_ext = (const char *)glGetString (GL_EXTENSIONS);
+ if(gl_ext && *gl_ext){
+! sdl.opengl.packed_pixel=(strstr(gl_ext,"EXT_packed_pixels") != 0);
+! sdl.opengl.paletted_texture=(strstr(gl_ext,"EXT_paletted_texture") != 0);
+ #if defined(NVIDIA_PixelDataRange)
+! sdl.opengl.pixel_data_range=(strstr(gl_ext,"GL_NV_pixel_data_range") != 0 ) &&
+ glPixelDataRangeNV && db_glAllocateMemoryNV && db_glFreeMemoryNV;
+ sdl.opengl.pixel_data_range = 0;
+ #endif
More information about the svn-ports-all
mailing list